diff --git a/80-dotool.rules b/80-dotool.rules index eec3818..b95dca1 100644 --- a/80-dotool.rules +++ b/80-dotool.rules @@ -3,4 +3,4 @@ KERNEL=="uinput", GROUP="input", MODE="0660", OPTIONS+="static_node=uinput" # This can stop dotool typing guff if you are using a non-us keyboard layout. # It only seems to affect X11. -ACTION=="add", ATTRS{name}=="dotool keyboard", ENV{XKBLAYOUT}="us" +SUBSYSTEM=="input", ACTION=="add|change", ATTRS{name}=="dotool keyboard", ENV{XKBLAYOUT}="us"