add keyboard layout sway config file

This commit is contained in:
John Gebbie 2023-01-30 14:38:21 +00:00
parent 3b44ef5aae
commit 8dd7d72f35
2 changed files with 4 additions and 0 deletions

2
dotool.sway Normal file
View file

@ -0,0 +1,2 @@
# This can stop dotool typing guff if you are using a non-us keyboard layout.
input "18193:2069:dotool_keyboard" xkb_layout "us"

View file

@ -8,4 +8,6 @@ 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 mkdir -p "$1/usr/share/X11/xorg.conf.d" || exit
cp -v 50-dotool.conf "$1/usr/share/X11/xorg.conf.d" || exit cp -v 50-dotool.conf "$1/usr/share/X11/xorg.conf.d" || exit
mkdir -p "$1/etc/sway/config.d" || exit
cp -v dotool.sway "$1/etc/sway/config.d/dotool" || exit
udevadm trigger udevadm trigger