aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclarkzjw <[email protected]>2023-04-03 11:14:12 -0700
committerclarkzjw <[email protected]>2023-04-03 11:14:12 -0700
commitfb6aec5faae1384ba46f0a4503d6b5724e2e82e6 (patch)
tree5d242f5915000fcfcd6bb7bd600d0de9c9a45bd8 /dot_config
parent0137c610fe48083613355e5f320b9998f7d53735 (diff)
downloaddotfiles-fb6aec5faae1384ba46f0a4503d6b5724e2e82e6.tar.gz
keyboard: use input-remapper to remap caps_lock
Diffstat (limited to 'dot_config')
-rw-r--r--dot_config/i3/config2
-rw-r--r--dot_config/input-remapper-2/presets/AT Translated Set 2 keyboard/private_new preset.json28
-rw-r--r--dot_config/input-remapper-2/presets/MX Anywhere 3 Mouse/private_empty_new preset.json0
-rw-r--r--dot_config/input-remapper-2/private_config.json6
-rw-r--r--dot_config/input-remapper-2/private_xmodmap.json218
5 files changed, 253 insertions, 1 deletions
diff --git a/dot_config/i3/config b/dot_config/i3/config
index 58c19f5..d269356 100644
--- a/dot_config/i3/config
+++ b/dot_config/i3/config
@@ -427,7 +427,7 @@ exec --no-startup-id dunst --config ~/.config/dunst/dunstrc
427# `yay -S autotiling ;) (it is in AUR) 427# `yay -S autotiling ;) (it is in AUR)
428#exec_always --no-startup-id autotiling 428#exec_always --no-startup-id autotiling
429 429
430exec --no-startup-id xmodmap ~/.Xmodmap 430#exec --no-startup-id xmodmap ~/.Xmodmap
431 431
432#exec --no-startup-id /opt/1Password/1password 432#exec --no-startup-id /opt/1Password/1password
433 433
diff --git a/dot_config/input-remapper-2/presets/AT Translated Set 2 keyboard/private_new preset.json b/dot_config/input-remapper-2/presets/AT Translated Set 2 keyboard/private_new preset.json
new file mode 100644
index 0000000..285dcf4
--- /dev/null
+++ b/dot_config/input-remapper-2/presets/AT Translated Set 2 keyboard/private_new preset.json
@@ -0,0 +1,28 @@
1[
2 {
3 "input_combination": [
4 {
5 "type": 1,
6 "code": 58,
7 "origin_hash": "748e31550c24fc009038438dc4fce338"
8 }
9 ],
10 "target_uinput": "keyboard",
11 "output_symbol": "Control_L",
12 "name": "",
13 "mapping_type": "key_macro"
14 },
15 {
16 "input_combination": [
17 {
18 "type": 1,
19 "code": 29,
20 "origin_hash": "748e31550c24fc009038438dc4fce338"
21 }
22 ],
23 "target_uinput": "keyboard",
24 "output_symbol": "Caps_Lock",
25 "name": "Ctrl-L",
26 "mapping_type": "key_macro"
27 }
28]
diff --git a/dot_config/input-remapper-2/presets/MX Anywhere 3 Mouse/private_empty_new preset.json b/dot_config/input-remapper-2/presets/MX Anywhere 3 Mouse/private_empty_new preset.json
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/dot_config/input-remapper-2/presets/MX Anywhere 3 Mouse/private_empty_new preset.json
diff --git a/dot_config/input-remapper-2/private_config.json b/dot_config/input-remapper-2/private_config.json
new file mode 100644
index 0000000..5d66bcf
--- /dev/null
+++ b/dot_config/input-remapper-2/private_config.json
@@ -0,0 +1,6 @@
1{
2 "version": "2.0.0",
3 "autoload": {
4 "AT Translated Set 2 keyboard": "new preset"
5 }
6}
diff --git a/dot_config/input-remapper-2/private_xmodmap.json b/dot_config/input-remapper-2/private_xmodmap.json
new file mode 100644
index 0000000..56aa395
--- /dev/null
+++ b/dot_config/input-remapper-2/private_xmodmap.json
@@ -0,0 +1,218 @@
1{
2 "Escape": 1,
3 "1": 2,
4 "2": 3,
5 "3": 4,
6 "4": 5,
7 "5": 6,
8 "6": 7,
9 "7": 8,
10 "8": 9,
11 "9": 10,
12 "0": 11,
13 "minus": 12,
14 "equal": 13,
15 "BackSpace": 14,
16 "Tab": 15,
17 "q": 16,
18 "w": 17,
19 "e": 18,
20 "r": 19,
21 "t": 20,
22 "y": 21,
23 "u": 22,
24 "i": 23,
25 "o": 24,
26 "p": 25,
27 "bracketleft": 26,
28 "bracketright": 27,
29 "Return": 28,
30 "Control_L": 29,
31 "a": 30,
32 "s": 31,
33 "d": 32,
34 "f": 33,
35 "g": 34,
36 "h": 35,
37 "j": 36,
38 "k": 37,
39 "l": 38,
40 "semicolon": 39,
41 "apostrophe": 40,
42 "grave": 41,
43 "Shift_L": 42,
44 "backslash": 43,
45 "z": 44,
46 "x": 45,
47 "c": 46,
48 "v": 47,
49 "b": 48,
50 "n": 49,
51 "m": 50,
52 "comma": 51,
53 "period": 52,
54 "slash": 53,
55 "Shift_R": 54,
56 "KP_Multiply": 55,
57 "Alt_L": 56,
58 "space": 57,
59 "Caps_Lock": 58,
60 "F1": 59,
61 "F2": 60,
62 "F3": 61,
63 "F4": 62,
64 "F5": 63,
65 "F6": 64,
66 "F7": 65,
67 "F8": 66,
68 "F9": 67,
69 "F10": 68,
70 "Num_Lock": 69,
71 "Scroll_Lock": 70,
72 "KP_Home": 71,
73 "KP_Up": 72,
74 "KP_Prior": 73,
75 "KP_Subtract": 74,
76 "KP_Left": 75,
77 "KP_Begin": 76,
78 "KP_Right": 77,
79 "KP_Add": 78,
80 "KP_End": 79,
81 "KP_Down": 80,
82 "KP_Next": 81,
83 "KP_Insert": 82,
84 "KP_Delete": 83,
85 "ISO_Level3_Shift": 84,
86 "less": 86,
87 "F11": 87,
88 "F12": 88,
89 "Katakana": 90,
90 "Hiragana": 91,
91 "Henkan_Mode": 92,
92 "Hiragana_Katakana": 93,
93 "Muhenkan": 94,
94 "KP_Enter": 96,
95 "Control_R": 97,
96 "KP_Divide": 98,
97 "Print": 210,
98 "Alt_R": 100,
99 "Linefeed": 101,
100 "Home": 102,
101 "Up": 103,
102 "Prior": 104,
103 "Left": 105,
104 "Right": 106,
105 "End": 107,
106 "Down": 108,
107 "Next": 109,
108 "Insert": 110,
109 "Delete": 111,
110 "XF86AudioMute": 113,
111 "XF86AudioLowerVolume": 114,
112 "XF86AudioRaiseVolume": 115,
113 "XF86PowerOff": 116,
114 "KP_Equal": 117,
115 "plusminus": 118,
116 "Pause": 119,
117 "XF86LaunchA": 120,
118 "KP_Decimal": 121,
119 "Hangul": 122,
120 "Hangul_Hanja": 123,
121 "Super_L": 125,
122 "Super_R": 126,
123 "Menu": 127,
124 "Cancel": 223,
125 "Redo": 182,
126 "SunProps": 130,
127 "Undo": 131,
128 "SunFront": 132,
129 "XF86Copy": 133,
130 "XF86Open": 134,
131 "XF86Paste": 135,
132 "Find": 136,
133 "XF86Cut": 137,
134 "Help": 138,
135 "XF86MenuKB": 139,
136 "XF86Calculator": 140,
137 "XF86Sleep": 142,
138 "XF86WakeUp": 143,
139 "XF86Explorer": 144,
140 "XF86Send": 231,
141 "XF86Xfer": 147,
142 "XF86Launch1": 148,
143 "XF86Launch2": 149,
144 "XF86WWW": 150,
145 "XF86DOS": 151,
146 "XF86ScreenSaver": 152,
147 "XF86RotateWindows": 153,
148 "XF86TaskPane": 154,
149 "XF86Mail": 215,
150 "XF86Favorites": 156,
151 "XF86MyComputer": 157,
152 "XF86Back": 158,
153 "XF86Forward": 159,
154 "XF86Eject": 162,
155 "XF86AudioNext": 163,
156 "XF86AudioPlay": 207,
157 "XF86AudioPrev": 165,
158 "XF86AudioStop": 166,
159 "XF86AudioRecord": 167,
160 "XF86AudioRewind": 168,
161 "XF86Phone": 169,
162 "XF86Tools": 183,
163 "XF86HomePage": 172,
164 "XF86Reload": 173,
165 "XF86Close": 206,
166 "XF86ScrollUp": 177,
167 "XF86ScrollDown": 178,
168 "parenleft": 179,
169 "parenright": 180,
170 "XF86New": 181,
171 "XF86Launch5": 184,
172 "XF86Launch6": 185,
173 "XF86Launch7": 186,
174 "XF86Launch8": 187,
175 "XF86Launch9": 188,
176 "XF86AudioMicMute": 190,
177 "XF86TouchpadToggle": 191,
178 "XF86TouchpadOn": 192,
179 "XF86TouchpadOff": 193,
180 "ISO_Level5_Shift": 195,
181 "NoSymbol": 199,
182 "XF86AudioPause": 201,
183 "XF86Launch3": 202,
184 "XF86Launch4": 203,
185 "XF86LaunchB": 204,
186 "XF86Suspend": 205,
187 "XF86AudioForward": 208,
188 "XF86WebCam": 212,
189 "XF86AudioPreset": 213,
190 "XF86Messenger": 216,
191 "XF86Search": 217,
192 "XF86Go": 218,
193 "XF86Finance": 219,
194 "XF86Game": 220,
195 "XF86Shop": 221,
196 "XF86MonBrightnessDown": 224,
197 "XF86MonBrightnessUp": 225,
198 "XF86AudioMedia": 226,
199 "XF86Display": 227,
200 "XF86KbdLightOnOff": 228,
201 "XF86KbdBrightnessDown": 229,
202 "XF86KbdBrightnessUp": 230,
203 "XF86Reply": 232,
204 "XF86MailForward": 233,
205 "XF86Save": 234,
206 "XF86Documents": 235,
207 "XF86Battery": 236,
208 "XF86Bluetooth": 237,
209 "XF86WLAN": 238,
210 "XF86UWB": 239,
211 "XF86Next_VMode": 241,
212 "XF86Prev_VMode": 242,
213 "XF86MonBrightnessCycle": 243,
214 "XF86BrightnessAuto": 244,
215 "XF86DisplayOff": 245,
216 "XF86WWAN": 246,
217 "XF86RFKill": 247
218} \ No newline at end of file
Powered by cgit v1.2.3 (git 2.41.0)