2022-12-26 14:20:37 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Because of my regular non american laptop onboard keyboard layout and american externals one this is my hack to use both for dedicated device.
|
|
|
|
|
2023-12-10 18:49:51 +01:00
|
|
|
ids=$(xinput | grep 'AT Translated Set 2 keyboard' | cut -d '=' -f 2 | awk '{ print $1 }')
|
2022-12-26 14:20:37 +01:00
|
|
|
|
|
|
|
for id in $ids; do
|
2023-12-10 18:49:51 +01:00
|
|
|
setxkbmap -device "$id" -layout hr -option caps:escape
|
2022-12-26 14:20:37 +01:00
|
|
|
done
|