I get double pressed if I use two configs for laptop and external keybard + mouse
I get double presses of each key and mouse frozen in case I have two configuration yaml files
laptop one:
SHELL: [zsh, -c]
---
- CMD: mux -c caps2esc -c keyboard -c mouse
- JOB:
- mux -i caps2esc | caps2esc -t 10000| mux -o keyboard -o mouse
- mux -i keyboard | uinput -c /etc/interception/laptop_keyboard.yaml
- mux -i mouse | uinput -c /etc/interception/touchpad.yaml
- JOB: intercept -g $DEVNODE | mux -o caps2esc
DEVICE:
LINK: /dev/input/by-path/platform-i8042-serio-0-event-kbd
- JOB: intercept -g $DEVNODE | mux -o caps2esc
DEVICE:
LINK: /dev/input/by-path/platform-AMDI0010:00-event-mouse
external keyboard:
SHELL: [zsh, -c]
---
- CMD: mux -c caps2esc -c keyboard -c mouse
- JOB:
- mux -i caps2esc | caps2esc | mux -o keyboard -o mouse
- mux -i keyboard | uinput -c /etc/interception/my_keyboard.yaml
- mux -i mouse | uinput -c /etc/interception/mouse.yaml
- JOB: intercept -g $DEVNODE | mux -o caps2esc
DEVICE:
LINK: /dev/input/by-id/usb-RONGYUAN_MonsGeek_2.4G_wireless_Keyboard-if02-event-kbd
- JOB: intercept -g $DEVNODE | mux -o caps2esc
DEVICE:
LINK: /dev/input/by-id/usb-Logitech_USB_Receiver-if02-event-mouse
Should I just use one configuration file or create a script that detects a connection and turns the other configuration on, disables the other one, or am I missing something?
Edited by Roman Lee