Change workspace icons
Adding icons to workspaces can give your desktop a nice and functional look.
Finding icons
Icons are actually characters from fonts installed by Regolith looks. Each look comes with a specific icon font. The icon font is defined in the typeface_bar
variable in the typeface
config file. The default look Cahuella uses the Material Design Icons font (see file /etc/regolith/styles/cahuella/typeface
).
You can browse the icon font using the Gnome Character Map application (gucharmap
package):
- Open Gnome Character Map.
- Select your icon font in the top left combo.
- In the script pane select Common.
- Scroll down the characters pane until you find the icons.
- Double click on the icon you are looking to use and press the Copy button (bottom right).
Tip: the icons are ordered alphabetically.
Staging files and changing icons
Follow these steps to edit the Xresource definitions of the workspace icons 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. Find the workspace name definition starting withi3-wm.workspace.01.name:
and change the last argument of theWORKSPACE_NAME
function from the defaultglyph
to your icon by simply copying and pasting the icon character. The icon character might not be displayed properly if your editor does not support the icon font, but it will work fine in the bar. -
Repeat for all required workspaces.
-
After saving this file log out and back in to see the change.
Adding support for icon fonts in text editors
Atom:
- Append the name of the icon font to
Settings > Editor > Font Familly
. - Example:
Menlo, Consolas, DejaVu Sans Mono, monospace, Material Design Icons
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.