~kaction/config

ref: c15a3cb21bfffdce7b9fcefc4479fabd6fe43e11 config/concession/runx/Xmodmap -rw-r--r-- 1.3 KiB
c15a3cb2 — Dmitry Bogatov nix-sys: mark files created as immutable 1 year, 5 months ago
                                                                                
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
!! -*- xmodmap -*-
!!! Put Multi_key on End key for xcape.
keycode 115 = Multi_key
!!! Put Lvl3 on Fn-Space. Stupid keyboard.
keycode 160 = ISO_Level3_Shift

!!! Both shifts for good typing practice.
!!! Right one will be additionally Escape
add shift = Shift_L
add shift = Shift_R

!!! Now we will manage Meta key.  Since it is important in emacs, we will
!!! use two of them --- to left and to right of space.
!!! These bingings are default, but I prefer beeing explicit.
clear mod1
keycode 64 = Meta_L
keycode 108 = Meta_R
add mod1 = Meta_L
add mod1 = Meta_R

!!! Make menu key as mod2 aka Alt.
clear mod2
keycode 135 = Alt_R
add mod2 = Alt_R

!!! Make both was-control keys Hyper.
clear mod3
keycode 105 = Hyper_R
keycode 37 = Hyper_L
add mod3 = Hyper_R
add mod3 = Hyper_L

!!! Make was-windows key super.
clear mod4
keycode 133 = Super_L
add mod4 = Super_L

!!! It is unclear what mod5 good for. I already have all modifiers
!!! emacs know about. For now, just ignore mod5.
clear mod5

!!! Caps lock is history mistake. Lets make it and Enter
!!! work as Control. Real return action will be managed by XCape.
clear lock
clear control
!! Caps in previous life
keycode 66 = Control_L
add control = Control_R
add control = Control_L

!!! Since some application prefers Return to KP_Enter, rebind
!!! KP_Enter on digit keyboard to Return.
keycode 104 = Return