Update keyboard layout settings script

This commit is contained in:
CronyAkatsuki 2023-12-10 18:49:51 +01:00
parent bb0e48b95e
commit 100b453c05

View File

@ -2,8 +2,8 @@
# Because of my regular non american laptop onboard keyboard layout and american externals one this is my hack to use both for dedicated device.
ids=$(xinput | grep "SEMICO USB Keyboard" | grep "keyboard" | cut -d '=' -f 2 | cut -f 1)
ids=$(xinput | grep 'AT Translated Set 2 keyboard' | cut -d '=' -f 2 | awk '{ print $1 }')
for id in $ids; do
setxkbmap -device $id -layout us -option caps:escape
setxkbmap -device "$id" -layout hr -option caps:escape
done