christopher-l / space-bar

GNOME Shell extension that shows workspaces buttons in top panel
155 stars 12 forks source link

Shortcut to rearrange workspaces and an option to enable/disable middle-click to close a workspace #8

Closed emanuelserpa closed 10 months ago

emanuelserpa commented 1 year ago

It would be cool if the shortcut could be Ctrl+Shift+number (or something like this), the command would change the current workspace X to the position Y (number) and the other would be rearranged to X.

Disable middle-click to "remove" a workspace would be very nice to people that use Thinkpads, for example, I was really unaware about this behaviour and I still sometimes middle click accidentally and the workspace is gone.

Thanks for the great extension!

christopher-l commented 11 months ago

Hey @emanuelserpa thanks for the feedback.

For now, I removed the middle-click-to-remove-workspace feature entirely, as I was hardly using it at all and most people probably didn't even realize it was there. If someone misses it, I might add it back with a preference option to disable it.

I might come back on the idea of having a shortcut for rearranging workspaces. For implementing your suggestion of something+number shortcuts, I think some options to what "something" is might be useful. Have to think about how to implement that. An easier-to-implement set of shortcuts would just move a workspace up or down the list, but I take it, you would prefer to move it to a specific number with one shortcut?

emanuelserpa commented 11 months ago

An easier-to-implement set of shortcuts would just move a workspace up or down the list

To be honest, this solution would feel more natural, and I would prefer it than my original suggestion. What I don't know is what would be the best shortcut for this.

The objective is not have to use the cursor to rearrange the workspaces.

christopher-l commented 11 months ago

I implemented configurable shortcuts for moving the current workspace left or right with the upcoming release (v21).