How to set super key like shortcut for kde menu or other kubuntu launcher
May 6, 2012 4 Comments
JUST USE THIS LINK USE KSUPERKEY
this is old documentation that you could use just if ksuperkey doesn’t work anymore.
thanks to Thomas McNicholas for the link
you have to use this command type in a terminal TYPE SUPER KEY TO SEE THE OUTPUT
xev | grep Super
you should see something like thsi
state 0x40, keycode 133 (keysym 0xffca, Super_L), same_screen YES,
so now the keycode it’s in my case 133 but on your machine should be the same anyway…
became root (if you can’t because you are not the administrator of your computer just create the same shit in $HOME/bin for the script , and then systemsettings => startup and shutdown=> add the script … see the note at the bottom of this article)
sudo -i
now that you are root you can create the executable
echo '#!/bin/bash' >/usr/bin/sklxmodmap.sh && echo echo "xmodmap -e 'keycode 133 = F13'" >>/usr/bin/sklxmodmap.sh
set it like exectuable
chmod +x /usr/bin/sklxmodmap.sh
now set kde to run at the startup the script creating this file /usr/share/autostart/xmodmap.desktop
echo '[Desktop Entry] X-DBUS-StartupType=none Exec= sklxmodmap.sh Name=Super key launcher shortcut for kde Type=Application X-KDE-StartupNotify=false OnlyShowIn=KDE; X-KDE-autostart-phase=1' >/usr/share/autostart/xmodmap.desktop
in one line
echo '#!/bin/bash' >/usr/bin/sklxmodmap.sh && echo echo "xmodmap -e 'keycode 133 = F13'" >>/usr/bin/sklxmodmap.sh && echo '[Desktop Entry] X-DBUS-StartupType=none Exec= sklxmodmap.sh Name=Super key launcher shortcut for kde Type=Application X-KDE-StartupNotify=false OnlyShowIn=KDE; X-KDE-autostart-phase=1' >/usr/share/autostart/xmodmap.desktop && chmod +x /usr/bin/sklxmodmap.sh
tx this article i did my for my own usage
Nice article. Everything works except Kickoff App Launcher forgets shortcut on system restart. Any advice?
Hi, Instructions on below webpage worked for me, it might be useful to you too. Tom
http://cvalcarcel.wordpress.com/2012/01/07/kubuntu-11-10-mapping-the-windows-key-to-activate-kmenu/#more-1622
Very well tested and worked thanks !
Cool