The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
0

Workspace name dialog

asked 2014-10-11 13:22:25 +0000

NonGrate gravatar image

Hello,

I think, it's possible to create a dialog, which will be shown when new workspace is created.

It will just show the focused text field, where you can write name for your workspace, and this name will be shown in the i3bar next to the number of workspace.

It would be much easier to navigate between workspaces if they're named, and it would be easier to name workspace when you opening it.

Also, there could be another dialog in the i3 to rename currently opened workspace.

Who knows how to do it?

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
2

answered 2014-10-11 13:31:06 +0000

Michael gravatar image

See the userguide:

bindsym $mod+r exec i3-input -F 'rename workspace to "%s"' -P 'New name: '
edit flag offensive delete link more

Comments

Thanks a lot! And is there possibility to access renamed workspaces relatively to the number they had?

NonGrate gravatar imageNonGrate ( 2014-10-11 13:44:42 +0000 )edit

If your workspace name starts with a number, the `workspace number` command will find it, e.g. `workspace number 1` switches to “1: web”. This is also documented in the userguide, so please read that closely.

Michael gravatar imageMichael ( 2014-10-13 07:43:06 +0000 )edit
0

answered 2014-10-11 13:49:10 +0000

lasers gravatar image

updated 2014-10-11 13:51:51 +0000

See 6.5.2. Renaming workspaces on

 http://i3wm.org/docs/userguide.html#_changing_named_workspaces_moving_to_workspaces

You could bind i3-input or make your own script using dmenu or zenity (for input). There are probably few on the web too if you can find them. Here's an example for i3-input.

bindsym $mod+z exec i3-input ; mode "default"

Launch i3-input and type this. rename workspace to web

This is useful because you can do more than just renaming a workspace.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-10-11 13:22:25 +0000

Seen: 415 times

Last updated: Oct 11 '14