Adds evremap

This commit is contained in:
Michel Fedde 2025-02-12 22:06:48 +01:00
parent de51e76fa3
commit 19693869bb
3 changed files with 36 additions and 1 deletions

View file

@ -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"]

View file

@ -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"]

View file

@ -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