Make multi device example more robust

The previous one won't work when devices reattach.
This commit is contained in:
Francisco Lopes 2020-12-30 23:16:17 -03:00
parent c738e8783a
commit 186b887e7d
No known key found for this signature in database
GPG Key ID: 2E754CF1886344B5

View File

@ -75,14 +75,11 @@ example configuration taken from my laptop:
```yaml ```yaml
SHELL: [zsh, -c] SHELL: [zsh, -c]
--- ---
- JOB: mux -c caps2esc - JOB: mux -c caps2esc; mux -i caps2esc | caps2esc | uinput -d /dev/input/by-path/platform-i8042-serio-0-event-kbd
- JOB: - JOB: intercept -g $DEVNODE | mux -o caps2esc
- intercept -g $DEVNODE | mux -o caps2esc
- mux -i caps2esc | caps2esc | uinput -d $DEVNODE
DEVICE: DEVICE:
LINK: /dev/input/by-path/platform-i8042-serio-0-event-kbd LINK: /dev/input/by-path/platform-i8042-serio-0-event-kbd
- JOB: - JOB: intercept $DEVNODE | mux -o caps2esc
- intercept $DEVNODE | mux -o caps2esc
DEVICE: DEVICE:
LINK: /dev/input/by-path/platform-i8042-serio-4-event-mouse LINK: /dev/input/by-path/platform-i8042-serio-4-event-mouse
``` ```