RSS Subscription
Linux Howtos & Tutorials

Enter your email:

Delivered by


NOTE:New tutorials are from LinuxCareer.com

Poll

Do you own or wish to have iPhone?
 


Linux eBooks FREE Download
A guide to programming Linux kernel modules
Introduction to Linux - A Hands on Guide
A Newbie's Getting Started Guide to Linux

Linux from Scratch - Create Your Own Linux System - Free eBook

Linux: The Hacking Solution (v.3.0)

SQLite 3 with PHP Essential Training – Free Video Training Tutorials

This guide will introduce you to the world of GNU/Linux

The GNU/Linux Advanced Administration

A Complete Beginner's Manual for Ubuntu 10.04 (Lucid Lynx)

Advanced Bash-Scripting Guide

Set up, maintain, and secure a small office email server

Partner Linux Sites:
How-To.LinuxCareer.com
Jobs.LinuxCareer.com
TuxMachines
Monsterb
LinuxBloggers
AdamsInfo
LinuxScrew
All For Linux

Reprogram keyboard keys with xmodmap

If you do not like your keyboard layout or the layout you are using is very close to perfection but some keys could be re-mapped to different location there is a easy fix. Tool like xmodmap will help you to achieve a this perfection by helping you customize you keyboard layout.  Here is how it goes:

First you need to obtain current key mappings and this is done by following command:

xmodmap -pke

this will reveal that :

keycode  16 = 7 ampersand
keycode  17 = 8 asterisk


this means that keycode 16 is attached to number 7 and when SHIFT is held the ampersand will be active. If for some reason there is a need to change this behavior one would create a .Xmodmap within a $HOME directory with the following lines:

keycode  16 = 8 asterisk
keycode  17 = 7 ampersand


which means that 8 asterisk will be mapped to keycode 16 and vice versa. Activate this key board re-map with:
xmodmap $HOME/.Xmodmap

to go back to the previous settings just repeat the last two steps or quit current session. To make this change permanent make sure that xmodmap $HOME/.Xmodmap is executed when a session is created.

NOTE: do not abuse xmodmap to make a fun from your fellow colleagues :-)

xmodmap can also be used to map more functionalities to your keyboard since some keys may not be in use.

Share this linux post:

Submit Reprogram keyboard keys with xmodmap in Delicious Submit Reprogram keyboard keys with xmodmap in Digg Submit Reprogram keyboard keys with xmodmap in FaceBook Submit Reprogram keyboard keys with xmodmap in Google Bookmarks Submit Reprogram keyboard keys with xmodmap in Stumbleupon Submit Reprogram keyboard keys with xmodmap in Technorati Submit Reprogram keyboard keys with xmodmap in Twitter
 
Comments for this page are closed !!!
Please visit our new Linux Forum for additional help or discussion.


Linux eBooks FREE Download