Closed 0xN1nja closed 1 month ago
Workspaces on the bar used to look like this upon connecting an external monitor (before fixing):
Ohh nice solution, i will merge this, I have already applied your changes and I am testing but in the meantime I will accept the changes.
Fixes https://github.com/gh0stzk/dotfiles/issues/207#issue-2198213495.
In the
WorkSpaces
script, you are looping throughdesktops
:The output of which;
bspc query -D --names
, looks like this:This is why workspaces are duplicating when connecting an external desktop.
I fixed this by piping the output of
bspc query -D --names
tosort
and then piping the output ofsort
touniq
. Now the query looks like this:And now workspaces are not duplicating anymore (when connecting an external desktop), and they are working just like the workspaces in polybar: