jqno / gnome-happy-appy-hotkey

GNOME Shell extension to assign hotkeys to applications to give them focus or launch them
GNU General Public License v3.0
8 stars 1 forks source link

[Feature request] Limit the window list to rotate through to existing desktop #6

Closed quesada closed 8 months ago

quesada commented 8 months ago

I use a notetaking app with multiple windows open, and rotate using Happy Appy's single key presses. Wonderful workflow.

Except that if I want to use workspaces (Gnome, KDE, but mostly every desktop supports them; they are a basic unix desktop concept at this point)... it teleports away from my current workspace. This is most of the time something I don't want.

Can this be an option, perhaps?

quesada commented 8 months ago

For context, before Wayland made it broken, I used Jumpapp and wmctrl.

https://man.archlinux.org/man/wmctrl.1.en

wmctrl has the concept of desktops. Jumpapp uses it to find, list windows. I suspect the Gnome API you might be using has that concept too.

jqno commented 8 months ago

Yeah, Gnome should be able to do that too.

Just to be clear, do you want this feature only for the 'unbound cycle' hotkey, or for all of them?

In case you want it for all hotkeys, what should happen if you have an app open on another workspace and you press its key? Should it start a new instance on the current workspace, or ignore the keypress?

quesada commented 8 months ago

For all apps. And it should start a new app. This is my workflow

jqno commented 8 months ago

Ah, I see. My workflow is quite different, but I see the value in yours, so I can definitely add that option. Can't promise when though, because of work and family commitments.

jqno commented 8 months ago

I've just released a new version with this feature. There's now a checkbox in the settings. If you enable it, you should get the behaviour you're looking for.