Differences between revisions 4 and 5
Revision 4 as of 2005-12-31 00:21:56
Size: 2160
Editor: S010600131016cf6f
Comment: add cats
Revision 5 as of 2006-06-10 04:08:39
Size: 2047
Editor: S0106000fb085cc63
Comment: minor tweaks
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
= Mapping The Windows Key =
Line 5: Line 3:

=== Step 1 - Creating .xstartup file ===
=== Create a .xstartup file ===
Line 20: Line 17:

=== Step 2 - Mapping Keys ===
=== Map Keys ===
Line 32: Line 28:
=== Step 3 - Creating Custom mappings ===
To Be Done...


This small guide explains how to map the Windows key in order to use it as a modifier, under Ubuntu. This guide also shows how to map common Windows Key shortcuts so that the behavior is similar to how Windows users are used to doing things. The whole thing is very simple, and if you want to include (or link to this) from other pages, feel free to do so.

Create a .xstartup file

We will need to edit your /home/user/.xstartup file. If you have one, edit it (with whatever text editor you work best with). If it does not exist, simply create it. Easiest way to do this is to open Text Editor (under Applications, Accessories) and then save the file as /home/user/.xstartup

Paste the following in the file:

# Make the Windows key a useable mod key:
xmodmap -e "remove mod4 = F13"
xmodmap -e "keycode 115 = Super_L"
xmodmap -e "add mod4 = Super_L"

Note: You can type the three commands directly in a terminal window to test them. If the first command spits out commandline:1: bad remove modifier keysym list (empty), then simply delete it or add a # before it to comment it out.

Source of this code: [ Click Here]

Map Keys

In order to create your key shortcuts, you will need to open the Keyboard Shortcuts window from the System / Preferences menu. Click on the shorcut you want to create, then make your key combination. For example, if you want to copy the "Run" dialog box from Windows (Win+R), just click on Show the panel run application dialog, then press WIN+R at the same time.

Common Win Shortcuts


Keyboard Shortcuts Name

Windows equivalent


Show the panel run application dialog

Run dialog


Home Folder

Windows Explorer (or My Documents)






Search Files or Folders


Hide all windows and focus desktop

Show Desktop

CategoryDocumentation CategoryCleanup

MappingWindowsKey (last edited 2008-08-06 16:38:28 by localhost)