switcher icon indicating copy to clipboard operation
switcher copied to clipboard

optionaly use super as shortcut

Open pyluyten opened this issue 8 years ago • 8 comments

triggering "switcher" with "super" would be cool. This would imply to have vanilla "activities overview" with something else , eg "super+a".

seems there is a mutter setting : /apps/mutter/general/overlay_key

i guess switcher extension could help the user going this way Also one advantage is that the day you deactivate switcher (eg it is temporarily broken =) , super comes back to standard.

pyluyten avatar Oct 25 '16 13:10 pyluyten

I'll look into this.

daniellandau avatar Oct 25 '16 14:10 daniellandau

On my machine it's /org/gnome/mutter/overlay-key and that seems to take plain super away from going to overview, but I still can't see how we could grab plain super for launching an extension. I'd also like activation by double Ctrl (https://github.com/daniellandau/switcher/issues/17), but I don't see how that's possible to achieve.

daniellandau avatar Nov 06 '16 10:11 daniellandau

Yes i'm not sure neither how to check super is pressed. I'd ilook at below commit (who knows this might help for #17, too )

https://git.gnome.org/browse/mutter/commit/?id=6c3985220ecc685595bc2c02af60ffe4a6d7d0c1

pyluyten avatar Nov 06 '16 15:11 pyluyten

well of course there is the direct way, do not listen to a key but inject WorkspaceView init this is what WindowNavigator does

injectToFunction(WorkspacesView.WorkspacesView.prototype, '_init', function(width, height, x, y, workspaces) { this._keyPressEventId = global.stage.connect('key-press-event', Lang.bind(this, this._onKeyPress));

pyluyten avatar Nov 19 '16 23:11 pyluyten

Hmm, interesting. I'm not sure if this is really worth the effort though.

daniellandau avatar Nov 20 '16 11:11 daniellandau

I know this is al old thread, but i'd love to have just <super> as a hotkey as well.

Epskampie avatar Feb 20 '18 10:02 Epskampie

It's possible to bind keys to modifiers directly: Simply set the keysym of the modifer directly in dconf:

dconf write /org/gnome/shell/extensions/switcher/show-switcher "['Super_L']"

For this to work the overlay key should probably be disabled or changed to something other than super.

Note that you won't be able to bind eg. <super>a while Super_L is bound as suggested by OP.

olejorgenb avatar Dec 21 '18 17:12 olejorgenb

Super late post but just wanted to mention I did the above but it had a side effect that made it a deal breaker for me.

Using dconfeditor (gui for this stuff) I first changed /org/gnome/mutter/overlay-key to being ['<Super>Tab>'] and then /org/gnome/shell/extensions/switcher to be 'Super_L. This makes just pressing left super toggle the switcher while pressing super+tab triggered the regular gnome activities overview because I sometimes still want that too. Unfortunately that broke holding super and clicking on windows to move or resize them as it's pressing down super that triggers switcher instead of releasing super so I settled for the opposite. Toggle switcher with super+tab and keep just Super for activities.

okand avatar Dec 18 '21 14:12 okand