Update keyboard layout settings script
This commit is contained in:
parent
bb0e48b95e
commit
100b453c05
@ -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.
|
# 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
|
for id in $ids; do
|
||||||
setxkbmap -device $id -layout us -option caps:escape
|
setxkbmap -device "$id" -layout hr -option caps:escape
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user