Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hyprland workspaces how to format with icon and set id as fallback #2533

Closed
woojiq opened this issue Sep 23, 2023 · 0 comments · Fixed by #2534
Closed

Hyprland workspaces how to format with icon and set id as fallback #2533

woojiq opened this issue Sep 23, 2023 · 0 comments · Fixed by #2534

Comments

@woojiq
Copy link
Contributor

woojiq commented Sep 23, 2023

Config: https://github.com/woojiq/nixos-config/blob/main/modules/programs/waybar.nix#L41-L58

# NIX
      "wlr/workspaces" = {
        format = "<span font='13'>{icon}</span>";
        format-icons = {
          "1" = "";
          "2" = "";
        };
        active-only = false;
        on-click = "activate";
      };

When I was using wlr/workspaces I had this behavior where I only defined the first 2-3 icons and all other workspaces were displayed with a number (id). When I updated my system and probably updated hyprland, waybar, etc, my workspaces were no longer showing, so I switched to hyprland/workspaces module and now I don't have the desired behavior. With the same setup I've shown, all my subsequent workspaces, starting with 3 and inclusive, are marked with the same icon as the last icon defined (in my case the second one). Something like format="{id}{icon}" is really ugly. I want to set the {id} format as a fallback if there is no icon defined. Is it possible with hyprland module? It was possible with wlr module.

@woojiq woojiq changed the title Hyprland workspaces how to format with icon and id as fallback Hyprland workspaces how to format with icon and set id as fallback Sep 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant