From 186b887e7d797bcb59637a58df260e01bff2c4b1 Mon Sep 17 00:00:00 2001 From: Francisco Lopes Date: Wed, 30 Dec 2020 23:16:17 -0300 Subject: [PATCH] Make multi device example more robust The previous one won't work when devices reattach. --- README.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index e4d492b..757cabc 100644 --- a/README.md +++ b/README.md @@ -75,14 +75,11 @@ example configuration taken from my laptop: ```yaml SHELL: [zsh, -c] --- -- JOB: mux -c caps2esc -- JOB: - - intercept -g $DEVNODE | mux -o caps2esc - - mux -i caps2esc | caps2esc | uinput -d $DEVNODE +- JOB: mux -c caps2esc; mux -i caps2esc | caps2esc | uinput -d /dev/input/by-path/platform-i8042-serio-0-event-kbd +- JOB: intercept -g $DEVNODE | mux -o caps2esc DEVICE: LINK: /dev/input/by-path/platform-i8042-serio-0-event-kbd -- JOB: - - intercept $DEVNODE | mux -o caps2esc +- JOB: intercept $DEVNODE | mux -o caps2esc DEVICE: LINK: /dev/input/by-path/platform-i8042-serio-4-event-mouse ```