add keyboard layout X config file
This commit is contained in:
parent
39e0e25299
commit
3b44ef5aae
3 changed files with 10 additions and 2 deletions
6
50-dotool.conf
Normal file
6
50-dotool.conf
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
# This can stop dotool typing guff if you are using a non-us keyboard layout.
|
||||||
|
Section "InputClass"
|
||||||
|
Identifier "dotool keyboard"
|
||||||
|
MatchDriver "libinput"
|
||||||
|
Option "XkbLayout" "us"
|
||||||
|
EndSection
|
|
@ -1,6 +1,6 @@
|
||||||
# This allows users in group input to use dotool without root permissions.
|
# This allows users in group input to use dotool without root permissions.
|
||||||
KERNEL=="uinput", GROUP="input", MODE="0660", OPTIONS+="static_node=uinput"
|
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.
|
# This can stop dotool typing guff if you are using a non-us keyboard layout,
|
||||||
# It only seems to affect X11.
|
# but it only seems to affect X and 50-dotool.conf achieves that better.
|
||||||
SUBSYSTEM=="input", ACTION=="add|change", ATTRS{name}=="dotool keyboard", ENV{XKBLAYOUT}="us"
|
SUBSYSTEM=="input", ACTION=="add|change", ATTRS{name}=="dotool keyboard", ENV{XKBLAYOUT}="us"
|
||||||
|
|
|
@ -6,4 +6,6 @@ mkdir -p "$1/${2:-usr/local/bin}" || exit
|
||||||
cp -v dotool dotoolc dotoold "$1/${2:-usr/local/bin}" || exit
|
cp -v dotool dotoolc dotoold "$1/${2:-usr/local/bin}" || exit
|
||||||
mkdir -p "$1/etc/udev/rules.d" || exit
|
mkdir -p "$1/etc/udev/rules.d" || exit
|
||||||
cp -v 80-dotool.rules "$1/etc/udev/rules.d" || exit
|
cp -v 80-dotool.rules "$1/etc/udev/rules.d" || exit
|
||||||
|
mkdir -p "$1/usr/share/X11/xorg.conf.d" || exit
|
||||||
|
cp -v 50-dotool.conf "$1/usr/share/X11/xorg.conf.d" || exit
|
||||||
udevadm trigger
|
udevadm trigger
|
||||||
|
|
Loading…
Reference in a new issue