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 Oct 11 '14

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?

2 answers

Sort by » oldest newest most voted
2

answered Oct 11 '14

Michael gravatar image

See the userguide:

bindsym $mod+r exec i3-input -F 'rename workspace to "%s"' -P 'New name: '

Comments

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

NonGrate gravatar imageNonGrate (Oct 11 '14)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 (Oct 13 '14)edit
0

answered Oct 11 '14

lasers gravatar image

updated Oct 11 '14

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.

Question Tools

Stats

Asked: Oct 11 '14

Seen: 415 times

Last updated: Oct 11 '14