-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
[BUG] workspaces with "hide empty" do not respect custom-labels
and focused-labels
#190
Comments
I'm unsure how to implement this as for me the In that case, we could consider that Also, is there a reason not to use the Sway workspace labels and duplicate the workspace label in nwg-panel configuration? Wouldn't it be more useful to remove the custom labels and use the Sway configured labels instead? |
I don't use this module much, but - if I remember well - what I had in mind were people who use glyphs or short textual labels like e.g. "Web". |
Yep, but this is already configurable in Sway config. When you use The focused-label is is not however configurable in Sway anthough scripts must exists to rename workspaces on the fly. |
Keep in mind that every single script in nwg-shell uses workspace numbers, never names. |
I suggest if numbers is empty:
You could implement your use-case by duplicating the glyph you want to use in custom-labels and focused-labels enough to match the max number of workspaces you'll ever have. |
Also, what about ignoring workspaces that are not on the current output when using a dynamic numbers list ? |
What @mildred propose seems OK to me. |
This module is getting way too complicated to my taste, but I don't use it anyway. @mildred, give it a go, we'll see how it behaves. |
I'll try to come up with somethig not too complex. Looking at the code, the config is made so if the focused-labels or custom-labels have only one elements, this elements serves as default for all. |
I can try and refactor the module also, but I'll first come with a non refactored version |
If you (@mildred ) need some help, just ask. I can do some python or test. |
Can you test out the sway-workspaces branch here? master...mildred:nwg-panel:sway-workspaces edit: just checkout and run |
Sorry for the delay, I was out. |
Describe the bug
After the merging on #184 we have hide empty workspaces feature which is achievable with an empty list in
numbers
Setting an empty list manually as in #189 results in the module not respecting the
custom-labels
andfocused-labels
, I only see numbers.Moreover the numbers are not sorted.
To Reproduce
Steps to reproduce the behavior:
config
with an editorsway-workspaces.numbers
and set it to an empty list[]
.sway-workspaces.custom-labels
andsway-workspaces.focused-labels
to some glyph.nwg-panel
Expected behavior
Workspaces shoud be sorted.
Workspeces labels should follow the settings
Screenshots
Desktop (please complete the following information):
sway -v
: 1.8.1nwg-panel -v
: 0.8.0Additional context
It may be related to https://github.com/mildred/nwg-panel/blob/01811b84fb4872d3560b8faa08ea337f322fe402/nwg_panel/modules/sway_workspaces.py#L128 where the loop goes over the
settings["numbers"]
which in this case is an empty list.Not sure though.
The text was updated successfully, but these errors were encountered: