Ubuntu – Windows-like global shortcuts with the key in Xubuntu

shortcut-keysxfcexmodmapxubuntu

I would to define Windows-like shortcuts using the Super ("Windows") key. I'm running Xubuntu 11.04 (Natty).

Using Settings->Settings Manager->Windows Manager->Keyboard I assigned Super+D to "Show desktop".

Then, using Settings->Settings Manager->Keyboard->Applications Shortcut I assigned Super+E to thunar. So far, everything works perfectly.

But, at least, I'd like the Super key when pressed alone to open the Applications Menu but, being Super a modifier key I wasn't able to assign it alone to a shortcut. For reference this problem is also described here.

Based on this forum post I used to xmodmap to make it behave like a normal key – ie. not a modifier key. And guess what, it works. Sorta.

Super alone works perfectly. Super+E still opens thunar but also opens the Applications Menu. Super+D no longers works at all.

Of course, I can just remove my .Xmodmap file and assign a Super+A or similar to Applications Menu. But if there's a way to get just Super working it would be great.

Can someone shed some light on this issue?

Best Answer

I had the same issue and I finally resolved it. Since there is no way to solve this with Xfce alone, one needs the small tool ksuperkey. It was originally developed for KDE, but it works fine on other desktops. You basically install ksuperkey or compile it yourself, and bind your menu to "alt+f1". Once you run ksuperkey, the superkey will behave as one would expect. I highly recommend to put this tool into some form of autostart, so that ksuperkey gets started on startup. Set it and forget it!