shell icon indicating copy to clipboard operation
shell copied to clipboard

Is there a way to change keybindings?

Open FotiadisM opened this issue 3 years ago • 3 comments

Hello, I know I can change some of the keybindings, specifically those that the extensions changes, like Close Window. But is there a way to change all of them?

FotiadisM avatar Sep 21 '21 21:09 FotiadisM

GNOME Settings, Keyboard Shortcuts.

mmstick avatar Sep 21 '21 21:09 mmstick

It doesn't have the binding for the Launcher. I changed it once before but cannot seem to find it anymore

ayman-mezghani avatar Oct 21 '21 10:10 ayman-mezghani

Looks like Pop-Shell shortcuts only get added to GNOME Settings if the extension is installed globally, or perhaps it's just broken on Ubuntu but working on Fedora.

On my Fedora system where I installed via gnome-shell-extension-pop-shell, the settings are present. GNOME Settings -> Keyboard Shortcuts is populated with a "Tiling" section, as well as other pop-shell shortcuts in the other sections.

On my Ubuntu system where I only did a local install, GNOME Settings -> Keyboard Shortcuts shows none of these.

For what it's worth, though, the settings still work if set manually in dconf! I copied one of the shortcuts I set on my Fedora system to my Ubuntu system by using dconf dump and dconf load, and the shortcut change is applied on the Ubuntu system as well:

# on Fedora
$ dconf dump /org/gnome/shell/extensions/pop-shell
[/]
activate-launcher=['<Super>d']
snap-to-grid=false
tile-by-default=true

# on Ubuntu, manually typing this in:
$ dconf load /org/gnome/shell/extensions/pop-shell
[/]
activate-launcher=['<Super>d']

I also had to disable the "Hide all normal windows" shortcut to get this particular one to work on Ubuntu, but that's just because I chose Super+d.

Would be great if GNOME or pop-shell could fix this for local installs. Until then setting things manually is still possible.

daboross avatar Aug 30 '22 21:08 daboross

I have tried @daboross 's work around, it did not work for me on Zorin 16, i really love this tiling window system and only recently moved away from Pop_os. I want to disable the launcher as it cause the whole shell to hang and i was also using super+/ to launch my web browser.

xxKeefer avatar Oct 25 '22 21:10 xxKeefer

@xxKeefer Any chance you have Super+d assigned to anything else in Gnome keyboard settings? That's broken it for me setting a few other settings manually before, since setting it manually via dconf won't complain about conflicts.

To test that, could you try setting activatee-launcher manually to something that's much less likely to conflict, like this, then logging out & in again before testing?

$ dconf load /org/gnome/shell/extensions/pop-shell/
[/]
activate-launcher=['<Ctrl><Super><Shift>d']

If that doesn't work, then I'm just plain confused.

daboross avatar Oct 25 '22 21:10 daboross

Thanks for the reply my guy 👍🏻 you'll have to forgive me, i am still a novice really when it comes to Linux. i am trying that command in terminal and it gives me back

zsh: no matches found: activate-launcher=[<Ctrl><Super><Shift>d]

xxKeefer avatar Oct 25 '22 21:10 xxKeefer

Thanks for the reply my guy 👍🏻 you'll have to forgive me, i am still a novice really when it comes to Linux. i am trying that command in terminal and it gives me back

zsh: no matches found: activate-launcher=[<Ctrl><Super><Shift>d]

Oh yeah! That's because it's not a command :)

The command in this case is dconf load /org/gnome/shell/extensions/pop-shell/. I wasn't very explicit: I used the $ prefix to indicate that that's the line I'm typing into my shell prompt (which usually ends in $).

Once you execute dconf load /org/gnome/shell/extensions/pop-shell/, it will read from standard input - waiting for you to tell it what to load.

At that point, you enter both the next two lines: [/] and then activate-launcher=['<Ctrl><Super><Shift>d']. After you've entered both lines and you're on a new line (in other words, used Enter to end both lines), press Ctrl+d to send end-of-stream. dconf will then process those lines, finish, and you should be back at your shell prompt.

daboross avatar Oct 25 '22 22:10 daboross

Champion! thank you for spending the time to educate me. that works!

xxKeefer avatar Oct 26 '22 01:10 xxKeefer