Photo by Alexandru Acea / Unsplash

Sway - The small nifty tweaks part 2

May 29, 2022

Sometimes it's the small things that will greatly improve your window managers behavior.

Sworkstyle

Sworkstyle alias swayest_workstyle allows you to use dynamic workspace names in form of icons.

With large screens being more common it's counter productive to spawn windows on fixed workspaces. In order to keep everything structured sworkstyle places icons in the order of your applications. Let's have a look at an example.

Workspaces

You should re-enable workspace numbering if you disabled it before. Otherwise there is no clear way to know which hotkey will activate the workspace. As you can see above I have different icons for Keepass, Firefox, chat and voice software. The configuration file allows you to use any icon your font supports.

A very nice tool to preview and search for the best fitting icon is find_unicode.

You can install it with cargo:

cargo install find_unicode
Example search for fox

Summary

Sworkstyle helps a lot with maintaining a structured workplace.

The only thing that could be better would be proper back_and_forth support. Currently if anything changes on another workspace you cannot switch "back" to it as sworkstyle has an old map of the workspaces in memory.