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