fthx / babar

Task bar. GNOME Shell extension
GNU General Public License v3.0
41 stars 14 forks source link

Hide empty workspace numbers [feature request] #45

Open jlemonde opened 3 years ago

jlemonde commented 3 years ago

Hi! I'm loving this taskbar!

However there is a tiny issue that annoys me. I've set a static number of workspaces (seven in my case) and I regularly use up to five. However, most of the time I only use two or three. Thus there is a series of workspaces numbers showing in BaBar which truly takes space for nothing. I would like to be able to have a setting that would allow me to disable workspaces that have no applications open in them.

This is what it currently looks like, with too many numbers. Beware, I might very well only be using workspaces 2 and 5, so not necessarily the first ones, nor consecutive ones. Capture d’écran de 2021-10-07 14-29-54

Would this be doable? Thanks a lot!

fthx commented 3 years ago

I don't understand the point here. If you want dynamical ws, so use dynamical ws! :-) How could you access a void ws in a static config if it's not displayed?

jlemonde commented 3 years ago

No, I absolutely don't want dynamical because I am used to switch to numbered workspaces using numbered keyboard shortcuts (Alt+Num). The issue with dynamical WS is that if you close workspace N, then N+1 becomes the new N and it wrecks the way I organise myself. Many users who really use workspaces often prefer static workspaces because of that.

I only want to hide the numbers corresponding to empty workspaces because it takes up too much space. BTW, hiding unused workspaces is the default behaviour in many tiling managers.

I might try to implement it myself and have you review it, because I believe that this can be achieved in very few lines of code and I may be up to the task.