Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Navigating the Workspace History #26

Closed
johannesCmayer opened this issue Oct 27, 2023 · 3 comments
Closed

Feature Request: Navigating the Workspace History #26

johannesCmayer opened this issue Oct 27, 2023 · 3 comments

Comments

@johannesCmayer
Copy link

I often run into the issue that I go to the wrong workspace with the first keyboard shortcut. Let's say I want to go to workspace 3 from workspace 5. Then I might hit the shortcut for workspace 2, then realize my mistake, and consequently hit the shortcut for workspace 3.

Normally I don't keep track of what workspace I was on to begin with, in this case, workspace 5. Instead, I use the "go to the previous workspace" shortcut. However, in the case where I do a miss shortcut the first time, this doesn't work anymore. I think it would be cool if they go backward to the previous active workspaces, without this history being modified as long as I have not released the SUPER key.

I think this would be a strict improvement, as it would not really hinder any existing functionality. It of course could be a feature that is disabled by default. I of course can replicate this by writing a wmctrl script, but I think it would be nice if this comes directly with space-bar.

@christopher-l
Copy link
Owner

Hi @johannesCmayer!

Sorry for the very late response. Your issue kind of slipped through.

I experimented a bit with ways to monitor key-release events, but the only way I could find so far would grab all keyboard events, so the usual shortcuts would stop working.

I tried another method based on a simple timeout, so if one switches away from a workspace within a second, this workspace will not be considered for the previous-workspace shortcut. I uploaded the version here: https://github.com/christopher-l/space-bar/raw/refs/heads/feat/debounced-prev-ws/space-bar@luchrioh.shell-extension.zip. It can be installed with

gnome-extensions install --force space-bar@luchrioh.shell-extension.zip

Would you (or anyone interested) consider this useful?

@johannesCmayer
Copy link
Author

I switched to exwm 🫡

@christopher-l
Copy link
Owner

Closing since there doesn't seem to be anyone interested in this right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants