/hyprland-autoname-workspaces

Hyprland autoname workspaces 🪟

Primary LanguageRustISC LicenseISC

🪟 hyprland-autoname-workspaces

This is a toy for Hyprland.

This app automatically rename workspaces with icons of started applications - tested with waybar.

Install

AUR

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.

Cargo

$ cargo install --locked hyprland-autoname-workspaces

Usage

$ hyprland-autoname-workspaces

or to dedup icon

$ hyprland-autoname-workspaces --dedup

Configuration

In the config file ~/.config/hyprland-autoname-workspaces/config.toml. Edit the mapping of applications with class = "icon" in the [icons] part. You can also exclude applications in the [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"

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&copy=unicode