diff --git a/.config/evremap/evremap.toml##class.Laptop b/.config/evremap/evremap.toml##class.Laptop new file mode 100644 index 0000000..8a35002 --- /dev/null +++ b/.config/evremap/evremap.toml##class.Laptop @@ -0,0 +1,17 @@ +# The name of the device to remap. +# Run `sudo evremap list-devices` to see the devices available +# on your system. +device_name = "Keychron Keychron Q10 Max Keyboard" + +# If you have multiple devices with the same name, you can optionally +# specify the `phys` value that is printed by the `list-devices` subcommand +# phys = "usb-0000:07:00.3-2.1.1/input0" + +# Configure CAPSLOCK as a Dual Role key. +# Holding it produces LEFTCTRL, but tapping it +# will produce ESC. +# Both `tap` and `hold` can expand to multiple output keys. +[[dual_role]] +input = "KEY_CAPSLOCK" +hold = ["KEY_LEFTCTRL"] +tap = ["KEY_ESC"] diff --git a/.config/evremap/evremap.toml##class.PC b/.config/evremap/evremap.toml##class.PC new file mode 100644 index 0000000..3a77ec6 --- /dev/null +++ b/.config/evremap/evremap.toml##class.PC @@ -0,0 +1,17 @@ +# The name of the device to remap. +# Run `sudo evremap list-devices` to see the devices available +# on your system. +device_name = "Keychron Keychron Q10 Max" + +# If you have multiple devices with the same name, you can optionally +# specify the `phys` value that is printed by the `list-devices` subcommand +# phys = "usb-0000:07:00.3-2.1.1/input0" + +# Configure CAPSLOCK as a Dual Role key. +# Holding it produces LEFTCTRL, but tapping it +# will produce ESC. +# Both `tap` and `hold` can expand to multiple output keys. +[[dual_role]] +input = "KEY_CAPSLOCK" +hold = ["KEY_LEFTCTRL"] +tap = ["KEY_ESC"] diff --git a/.config/yadm/bootstrap.d/_install_keymap.sh b/.config/yadm/bootstrap.d/_install_keymap.sh index a8db326..2c429df 100755 --- a/.config/yadm/bootstrap.d/_install_keymap.sh +++ b/.config/yadm/bootstrap.d/_install_keymap.sh @@ -3,4 +3,5 @@ echo "# Installing keymapping" yay -S --needed evremap -sudo ln -s -f ~/.config/evremap.toml /etc/evremap.toml +sudo ln -s -f ~/.config/evremap/evremap.toml /etc/evremap.toml +sudo systemctl enable --now evremap