Waybar
Waybar copied to clipboard
Workspace 10 shows before 2-9 with sort-by-name
On the "wlr/workspaces" module workspace 10 shows before 2-9 with sort-by-name.
same issue here
Because it reads 1 then 0. So its like Workspace 1, 0 instead of 10. Technically correct. If you want, you can try renaming 10 to 92 or something
Because it reads 1 then 0. So its like Workspace 1, 0 instead of 10. Technically correct. If you want, you can try renaming 10 to 92 or something
I agree, this seems like expected behaviour for sort-by-name. However, personally, I have the same issue yet I still use sort-by-name
anyway since sort-by-coordinates
doesn't appear to have any effect (even with sort-by-name
set to false), and otherwise workspaces are sorted by order of creation (which I assume is sorting by id).
Can anyone confirm if sort-by-coordinates
actually does anything compared to being turned off?
Can anyone confirm if
sort-by-coordinates
actually does anything compared to being turned off?
I have tried to manually disable sort-by-name
and then testing out sort-by-coordinates
, I can say that it did not yield any difference.
But disabling sort-by-name
actually fixed the issue with 10
appearing before 1
This works for me,
"wlr/workspaces": {
//"sort-by-coordinates": true, //It did not have an effect
"sort-by-name": false,
"on-click": "activate",
"format": "{name} {icon}",
"format-icons": {
"default": "",
"active": "",
"urgent": ""
}
},
But using this configuration then results in if I open workspace 3
before workspace 2
then 3
is show before 2
... facepalm...
Same issue here, 20 workspaces are sorted like: 1, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 2, 20, 3, 4, 5, 6, 7, 8, 9
Makes sense why it sorts this way, but it's not how I want my bar to look.