feat: add xremap

This commit is contained in:
2025-07-05 08:55:25 +02:00
parent 7a3b52eb45
commit 4790bfda15
2 changed files with 28 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
Setup:
1. install xremap
2. run these commands:
```sh
echo 'KERNEL=="uinput", GROUP="input", TAG+="uaccess"' \
| sudo tee -a /etc/udev/rules.d/99-input.rules
echo 'uinput' \
| sudo tee -a /etc/modules-load.d/uinput.conf
sudo usermod -aG input <user>
```
3. reboot
4. run xremap with:
```sh
xremap ~/repos/dotfiles/xremap/<config>.yml --device '<device_name>'
```
+12
View File
@@ -0,0 +1,12 @@
modmap:
- name: OSRS Runelite
application:
only: net-runelite-client-RuneLite
remap:
BTN_RIGHT:
held: BTN_MIDDLE
alone: BTN_RIGHT
alone_timeout_millis: 100
exact_match: true
device:
only: 'Logitech USB Receiver'