berry icon indicating copy to clipboard operation
berry copied to clipboard

Can the number of desktops be adjusted?

Open lowercasename opened this issue 3 years ago • 2 comments

This might be my X11 naivete coming through, although a Google didn't come up with anything generic for X11. Is there a way to set the maximum number of virtual desktops, either in Berry or X11? I've currently got 10 showing.

lowercasename avatar Apr 05 '21 21:04 lowercasename

X11 itself has no concept of a virtual desktop, it's the responsibility of the window manager to implement them (although I will note that the EWMH specifications does have a concept of a desktop).

The maximum number of desktops in berry is just a hardcoded value associated with a constant WORKSPACE_NUMBER (you can find the declaration here) that has a default value of 10. You can always change that and recompile if you need more desktops. Technically speaking this could be a configurable value at runtime but I personally don't see too much of a use-case for that.

JLErvin avatar Apr 05 '21 21:04 JLErvin

That's very interesting, I had no idea! I guess this is why all window managers trumpet the fact that they have virtual desktops.

The only use case I can see for it is if one, say, starts moving through virtual desktops consecutively with a bash script they wrote and gets bored by about desktop 6. ;)

lowercasename avatar Apr 05 '21 21:04 lowercasename