Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
27
rated 0 times [  27] [ 0]  / answers: 1 / hits: 12201  / 2 Years ago, sun, october 9, 2022, 9:30:17

I am using gnome 3 and gnome-shell (not gnome classic) on Ubuntu 12.04 LTS with emacs. I would like to use the keyboard shortcut Ctrl+Alt+D with emacs, however whenever I hit that keystroke, gnome intercepts it and hides all windows.



I have tried to disable it under Settings > Keyboard > Shortcuts > Navigation > Hide all normal windows. It appears disabled there, but if I hit Ctrl+Alt+D all windows will still minimize.



My next step was to try and use dconf-editor to disable it under org.gnome.desktop.wm.keybindings, but I couldn't find any option for "hide all windows" (or anything similar) there.



Any help would be appreciated, thanks.


More From » gnome

 Answers
4

I figured out that the following worked in my case. First, instead of trying to disable the shortcut, give it a new key combination. I did this in System Settings -> Keyboard Layout -> Layouts -> Options..., but it's a known bug that these settings are not respected in Gnome Shell.



Additionally, use dconf-editor to give it the same key combination:




  1. Open dconf-editor (Alt-F2, enter dconf-editor)

  2. Expand until the element: org → gnome → desktop → wm → keybindings.

  3. Change the value for the correct key (in your case, this should be show-desktop).



In my case, I wanted C-M-s be respected in Emacs, and not roll up the current window. So instead of trying to disable the shortcut by using brackets in dconf-editor, I gave toggle-shaded a new key combination: ['<Control><Super>s']. And suddenly, C-M-s was available in Emacs. Hope this helps for you, too.


[#36193] Monday, October 10, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tresein

Total Points: 197
Total Questions: 113
Total Answers: 112

Location: Hungary
Member since Wed, Nov 9, 2022
2 Years ago
tresein questions
Tue, Jun 28, 22, 17:57, 2 Years ago
Sun, Apr 3, 22, 07:11, 2 Years ago
Thu, Feb 3, 22, 18:03, 2 Years ago
Sat, May 13, 23, 13:00, 1 Year ago
;