-
Notifications
You must be signed in to change notification settings - Fork 0
/
.Xmodmap
71 lines (60 loc) · 2.36 KB
/
.Xmodmap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
! I use mapping for all keys that I need right shift like underscore,
! brackets... reload this configuration with: xmodmap ~/.Xmodmap
! syntax is: keycode 1 = key shift+key modifier(capslock)+key
!! mac apple keyboard swap command which is 133=Super_L and option which is 64=Alt_L
!! when you (un)comment you can reload with: xmodmap ~/.Xmodmap
! clear mod4
! keycode 133 = Alt_L NoSymbol Alt_L
! keycode 64 = Super_L NoSymbol Super_L
! add mod4 = Super_L
! when we add modifier than it looks for previous occurence of keysym so this
! has to be after definition of keycode that is using modifier
! right alt is underscore, so we clear mod1 and set to left alt
! NOTE that this has to be after we redefine Alt_L for apple keyboard
clear mod1
add mod1 = Alt_L
clear mod2
! add mod2 = Alt_L
! remove caps lock modifier
clear Lock
! I use more often special signs than numbers
keycode 10 = exclam 1 1 exclam
keycode 11 = at 2 2 at
keycode 12 = numbersign 3 3 numbersign
keycode 13 = dollar 4 4 dollar
keycode 14 = percent 5 5 percent
keycode 15 = asciicircum 6 6 asciicircum
keycode 16 = ampersand 7 7 ampersand
keycode 17 = asterisk 8 8 asterisk
keycode 18 = parenleft 9 9 parenleft
keycode 19 = parenright 0 0 parenright
! this is not longer true, so comment out braces remapping
! in ruby we use more often {} than []
! keycode 34 = braceleft bracketleft bracketleft braceleft
! keycode 35 = braceright bracketright bracketright braceright
! bar | and backslash \
keycode 51 = bar backslash backslash bar
keycode 30 = u U i I
! ctrl+i is mapped in xbindkeys to shift+Insert
keycode 31 = i I i I
keycode 43 = h H Left
keycode 44 = j J Down
keycode 45 = k K Up
keycode 46 = l L Right
! colon and semicolon are just reversed
keycode 47 = colon semicolon colon semicolon
keycode 48 = quotedbl apostrophe quotedbl apostrophe
!! do not make that single quote and double quotes are switched
! keycode 48 = apostrophe quotedbl apostrophe quotedbl
keycode 49 = grave asciitilde asciitilde
keycode 55 = v V V
keycode 57 = n N parenleft
keycode 58 = m M parenright
keycode 59 = comma less less
keycode 60 = period greater greater
! assign dummy modifier to capslock
keycode 66 = ISO_Group_Shift ISO_Group_Shift ISO_First_Group NoSymbol
! this is for right alt
keycode 108 = underscore underscore underscore underscore
! this is for right command
keycode 134 = underscore underscore underscore underscore