Change workspace labels
Change the workspace names as displayed in the bar.
Remove everything but the workspace number
Follow these steps to edit the Xresource definitions of the workspace labels used by i3:
- Stage your Regolith Styles Xresources files, as described here.
- Stage the
/etc/regolith/styles/i3-wm
Xresource file in your user directory, and ensure that your user copy of the Xresource file#include
s this copy. - Edit your copy of the
i3-wm
styles file. This file uses C-style macros to generate the Pango markup for each workspace label. There are various ways of changing the macros to strip out the icons, but this may be the most concise. Replace:
#define WORKSPACE_NAME(INDEX, FONT, COLOR, GLYPH) INDEX:<span font_desc=FONT> INDEX </span><span foreground=COLOR>GLYPH</span>
with:
#define WORKSPACE_NAME(INDEX, FONT, COLOR, GLYPH)
- After saving this file log out and back in to see the change.
Creating workspace labels
Some users prefer to title their workspaces based a theme, such as terminal
, web
, etc. To do this, make modifications to your user copy of /etc/regolith/styles/i3-wm
similarly to:
i3-wm.workspace.01.name: Terminal
i3-wm.workspace.02.name: Web
i3-wm.workspace.03.name: Chat
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.
Last modified February 16, 2020: Cleanup and add some additional info for workspace label customization (789900e)