Waybar Workspaces in Hyprland

Waybar has a dedicated module for Hyprland workspaces: https://github.com/Alexays/Waybar/wiki/Module:-Hyprland#workspaces. One of its most fantastic features is the possibility of representing the application windows in each workspace.

For example, here I have the workspaces with the following application windows:

  1. Kate (text editor) and terminal (Alacritty)
  2. Dolphin (file manager)
  3. A Firefox window and a Firefox window on GitHub
  4. A Firefox window on YouTube and Thunderbird (email client)

Here’s the Wyabar workspace representation (on the left):

Here I added Google Chrome in the workspace 2:

This is the Waybar module configuration, where the important thing is “{window}” in the “format”. Unfortunately, you must work on defining the rewrite rules and the icon to show as you want. Moreover, these are not icons; they are characters from Nerd fonts:

Probably, your browser will not render the fonts (though you can copy and paste them, and they will be taken correctly). I’m also showing a screenshot of my text editor where the Nerd fonts are rendered correctly:

Of course, you also have a character to be used by default if nothing matches (e.g., a question mark).

Nice feature, isn’t it? 🙂

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.