]> git.madduck.net Git - etc/xsession.git/blob - .xmodmap

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

fix commenting
[etc/xsession.git] / .xmodmap
1 !
2 ! don't make anything but Control_[LR] generate control
3 clear Control
4 add Control  = Control_L
5 !use for Mod3 on lapse
6 !add Control  = Control_R
7
8 clear Mod1
9 add Mod1     = Alt_L
10 add Mod1     = Meta_L
11
12 !
13 ! we kill caps lock once and for all and make it generate mod5
14 !
15 clear Lock
16 keycode 0x42 = Caps_Lock
17 clear Mod4
18 add Mod4     = Caps_Lock
19
20 !
21 ! now for what had me so long baffled. any keycode can generate eight keysyms,
22 ! but only the first four are used. and the way to index into them is by using
23 ! Shift and Mode_switch. my keyboard had no Mode_switch, so I am using that
24 ! bloody Windoze key:
25 !
26
27 ! now we assign the Mode_switch keysym to both Windoze keys
28 keycode 0x73 = Mode_switch
29 keycode 0x74 = Mode_switch
30 !right alt on lapse
31 keycode 0x71 = Mode_switch
32
33 ! ... and tell the Mode_switch keysym to generate the mod4 modifier.
34 clear Mod5
35 add Mod5     = Mode_switch
36
37 ! assign Super_R to the Menu key
38 keycode 0x75 = Super_R
39 !right control on lapse
40 keycode 0x6d = Super_R
41
42 ! ... and make it generate the mod3 modifier
43 clear Mod3
44 add Mod3     = Super_R
45
46 !
47 ! and now all we need to do is add what we would like to the keys.
48 ! if this approach doesn't work, you'll need to go via keycodes, e.g.:
49 !
50 !   keycode 0x26 = a A adiaeresis Adiaeresis
51 !
52 ! however, you'll have to check which keycode is generated by which keypress.
53 ! use xev(1) for that.
54 !
55 keysym backslash = backslash bar aring Aring
56 keysym bracketleft = bracketleft braceleft ae AE
57 keysym bracketright = bracketright braceright oslash Ooblique
58 keysym comma = comma less notsign guillemotleft
59 keysym equal = equal plus approximate plusminus
60 keysym grave = grave asciitilde degree infinity
61 keysym minus = minus underscore endash emdash
62 keysym period = period greater ellipsis guillemotright
63 keysym slash = slash question exclamdown questiondown
64 keysym apostrophe = apostrophe quotedbl rightdoublequotemark rightarrow
65 keysym semicolon = semicolon colon leftdoublequotemark leftarrow
66 keysym 0 = 0 parenright oacute Oacute
67 keysym 1 = 1 exclam onequarter oneeighth
68 keysym 2 = 2 at twosuperior onehalf
69 keysym 3 = 3 numbersign threesuperior threequarters
70 keysym 4 = 4 dollar eacute Eacute
71 keysym 5 = 5 percent EuroSign cent
72 keysym 6 = 6 asciicircum copyright trademark
73 keysym 7 = 7 ampersand yacute Yacute
74 keysym 8 = 8 asterisk uacute Uacute
75 keysym 9 = 9 parenleft iacute Iacute
76 keysym a = a A adiaeresis Adiaeresis
77 keysym b = b B otilde Otilde
78 keysym c = c C ccedilla Ccedilla
79 keysym d = d D egrave Egrave
80 keysym e = e E ediaeresis Ediaeresis
81 keysym f = f F eth Eth
82 keysym g = g G thorn Thorn
83 keysym h = h H ucircumflex Ucircumflex
84 keysym i = i I idiaeresis Idiaeresis
85 keysym j = j J ugrave Ugrave
86 keysym k = k K igrave Igrave
87 keysym l = l L ograve Ograve
88 keysym m = m M mu heart
89 keysym n = n N ntilde Ntilde
90 keysym o = o O odiaeresis Odiaeresis
91 keysym p = p P ocircumflex Ocircumflex
92 keysym q = q Q acircumflex Acircumflex
93 keysym r = r R ecircumflex Ecircumflex
94 keysym s = s S ssharp section
95 keysym t = t T icircumflex Icircumflex
96 keysym u = u U udiaeresis Udiaeresis
97 keysym v = v V atilde Atilde
98 keysym w = w W aacute Aacute
99 keysym x = x X multiply division
100 keysym y = y Y ydiaeresis ydiaeresis
101 keysym z = z Z agrave Agrave
102
103 ! Thinkpad stuff
104 ! http://www.thinkwiki.org/wiki/Installing_OpenSUSE_10.0_on_a_ThinkPad_X41#Numlock_and_Browse_keys
105 keycode  77 = Num_Lock
106 keycode 233 = XF86Forward
107 keycode 234 = XF86Back
108
109 ! the AccessIBM key
110 keycode 159 = XF86Excel