nwg-piotr / nwg-panel

GTK3-based panel for sway and Hyprland Wayland compositors
MIT License
620 stars 42 forks source link

Custom labels for workspaces #122

Closed az01101001 closed 2 years ago

az01101001 commented 2 years ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

I wanted to use dots (○ and ●, etc.) for the workspace buttons, instead of just using the default numbers. I've also seen people use kanji numbers or even labels like www and dev in their ricing, so this could also be useful to them. It would also be nice to be able to have custom labels for focused workspaces as well, for example for focused workspace and for the rest.

Describe the solution you'd like A clear and concise description of what you want to happen.

Add options for custom labels and focused labels, similar to the current method of choosing workspace numbers. There should be a check to ensure that the number of custom labels given is the same with the number of chosen workspace numbers. Then we can just simply map each workspace number to their corresponding custom label. When only one custom label is provided, it can be assumed that the user wants to use the same label across all workspace.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

I am aware that Sway allows custom workspace names, but even they suggest to use numbers instead of names to allow easy switching of workspaces using keybinds. This would be an easier way to use labels or names for workspaces without breaking Sway, as even Waybar doesn't support this.

Additional context Add any other context or screenshots about the feature request here.

nwg-piotr commented 2 years ago

merged