input: invoke autorandr through systemd when needed

This commit is contained in:
Vincent Bernat 2020-01-22 22:37:42 +01:00
parent 2452fb6bcb
commit 95bf8a3723

View file

@ -21,7 +21,7 @@ case "$event,$use,$(uname -n),$name" in
;; ;;
*,XISlaveKeyboard,*,"Topre Corporation Realforce 87") *,XISlaveKeyboard,*,"Topre Corporation Realforce 87")
sleep 2 sleep 2
autorandr --change systemctl --user start autorandr@$(systemd-escape -- "$DISPLAY").service
xkb default xkb default
;; ;;
*,XISlaveKeyboard,zoro,"AT Translated Set 2 keyboard") *,XISlaveKeyboard,zoro,"AT Translated Set 2 keyboard")