This is a toy for Hyprland.
This app automatically rename workspaces with icons of started applications - tested with waybar.
Available as AUR package under the program name hyprland-autoname-workspaces-git
.
You can then use the service systemctl --user enable --now hyprland-autoname-workspaces.service
.
bash
$ cargo install --locked hyprland-autoname-workspaces
bash
$ hyprland-autoname-workspaces
or to dedup icon
bash
$ hyprland-autoname-workspaces --dedup
In the config file ~/.config/hyprland-autoname-workspaces/config.toml
.
Edit the mapping of applications with class = "icon"
in the [icons]
part.
[exclude]
with class = title
.In the exclude
part, the key is the window class
, and the value the title
.
You can use ""
in order to exclude window with empty title and "*"
as value to match all title of a class name.
Example:
...
[exclude]
fcitx = "*"
Steam = "Friends list"
[title.classname]
with "a word in the title" = "icons"
.Example:
...
[title.kitty]
neomutt = "neomutt"
No need to restart the applications then, there is an autoreload.
Hint: You can use glyphsearch and copy the unicode icon of your font for example https://glyphsearch.com/?query=book©=unicode
Hint: You can find hyprland class names for currently running apps using: hyprctl clients | grep -i class
, or you can also use hyprland-autoname-workspaces --verbose
.