From 589d8d63a0db926a0e84ed5eef239462405c2f62 Mon Sep 17 00:00:00 2001 From: John Gebbie Date: Mon, 9 Jan 2023 13:21:27 +0000 Subject: [PATCH] add keyboard layout udev rule --- 80-dotool.rules | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/80-dotool.rules b/80-dotool.rules index 6f3d49e..eec3818 100644 --- a/80-dotool.rules +++ b/80-dotool.rules @@ -1,2 +1,6 @@ # This allows users in group input to use dotool without root permissions. 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"