Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Adding Extra Keybindings to KDE

Many modern keyboards contain extra keys that are not by default assigned to any action.

Multimedia” keys often generate a signal, and can simply be chosen as a keybinding within an application just like choosing any other key. Some keys however, are not detected and pressing them in a Configure Shortcuts has no effect.

Some IBM laptops, for instance, have extra keys about the left and right arrows, which look like page left and page right.

  1. Use xev to find the code of the keys. In this case, they are 233 and 234

  2. Choose key symbols. There are quite a range of these that are not used by default, so many are free. You can find the list in /usr/X11R6/include/X11/keysymdef.h (or its equivalent on your system).

  3. Create a file in your home directory called .Xmodmap, and add to it the following:

    keycode 233 = Next_Virtual_Screen
    keycode 234 = Prev_Virtual_Screen
  4. Run the command xmodmap ~/.Xmodmap

At this point, you should be able to run xev again and see that the keys now generate the keysym that you assigned. You can now simply assign them to any action as normal.

Related Information

  • The xev manpage. You can see this by typing man:/xev into a Konqueror window or by typing man xev into a terminal.




 
 
  Published under the terms of the GNU General Public License Design by Interspire