Keyboard shortcuts not working in 12.04?

27,238

Solution 1

I finally managed to get my shortcuts back, including the ones with Super.

1) Map the Super key

In System Settings / Keyboard / Typing tab / Layout Settings link (at the bottom) / Layouts tab / Options button / "Alt/Win key behaviour", choose Meta is mapped to Left Win key.

2) Desktop Shortcuts (such as "Show Desktop")

a) install dconf-tools: sudo apt-get install dconf-tools

b) run dconf-editor, go to /org/gnome/desktop/wm/keybindings and change the values you want to change. I set my shortcuts like in Windows:

  • panel-run-dialog is the run command, I set it to ['<Super>R']
  • show-desktop is to show the desktop, I set it to ['<Super>M']

3) Other Shortcuts (such as "Launch Terminal")

a) In System Settings / Keyboard / Shortcuts tab / Custom Shortcuts, Add (with the '+' button) all the shortcuts you want and set their accelerator. If you want to use the Super key here, you should use the Super here but it won't work yet

b) run gconf-editor (with a 'g', not a 'd' like 2.a), go to /desktop/gnome/keybindings and for each shortcut that uses Super, change Super to Mod4

That's it!

Solution 2

To get my media keys (volume up, volume down etc.) working in Ubuntu 12.04, I had to run dconf-editor and go to org -> gnome -> settings-daemon -> plugins -> media-keys and check the "active" box.

Solution 3

Any custom keyboard shortcuts involving Super button don't work in 12.04. For example, when I set a key combination Super+L to lock the screen - it doesn't do it (although it shows this combination in the menu by the "Lock Screen" menu item).

This is a regression from 11.10, where these key combinations worked flawlessly...

Solution 4

A work-around for shortcuts to run commands is to use compiz's commands plugin. Using this plugin I was able to make my custom Super-shortcuts working again which did not work with the standard Keyboard -> Shortcuts system settings.

Still this solution does not seem to work for shortcuts used by Unity. For example it's not possible to override Super-T, which opens the trash even if it has been re-assigned to something else in the commands plugin. And I couldn't find a way to disable the default action as defined by Unity.

Share:
27,238

Related videos on Youtube

Kizz
Author by

Kizz

Updated on September 18, 2022

Comments

  • Kizz
    Kizz over 1 year

    I can't get my shortcuts to work, among other things in 12.04.

    Anyone else with this problem? I'm not very pleased with Ubuntu 12.04 so far. What a letdown!

    • Jjed
      Jjed almost 12 years
      What shortcuts? What happens when you tap super? Is your keyboard working?
    • James
      James almost 12 years
      Hold down the Super key to get a list of default shortcuts for 12.04. Perhaps some of them were changed when you upgraded/installed. Also note that there are a few bugs with 12.04 right now regarding shortcuts and certain shortcut actions , Super+W comes to mind. You can check current bugs at (bugs.launchpad.net/ubuntu/precise)
    • Kizz
      Kizz almost 12 years
      Yeah, Super+W makes my computer spazz out lol When I hit super, the app menu thing shows up like normal. What I'm talking about specifically is getting Rhythmbox to jump to the next song. My keyboard doesn't have a "Next" button (only play/pause and volume), so I had assigned Super+N to be "Next" and Super+B to be "Previous" but that wouldn't work so I did Alt+N and Alt+B which works most of the time. It's working again after reboot, but it intermittently stops working.
    • Kizz
      Kizz almost 12 years
      When I press and hold Super, the menu pops up as Jacob Johan Edwards said, but it doesn't show "Media" shortcuts on there anywhere. In any case, I got it working again, but only with a reboot and assigning the shortcut to something else, then BACK to Alt+B and Alt+N. I was disappointed that I couldn't keep my Super+N and Super+B shortcuts :(
    • James
      James almost 12 years
      Assigning Super to user shortcuts seems to be broken in 12.04 right now.
    • inconveniently_nonexempt_bee
      inconveniently_nonexempt_bee over 11 years
      So am I understanding Laurian correctly, that Meta = Super?
  • Kizz
    Kizz almost 12 years
    Okay, I'm happy with using Alt instead of Super, I just have to relearn that muscle memory haha. No big deal..