scripts/keyboard-set

10 lines
332 B
Bash
Executable File

#!/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.
ids=$(xinput | grep 'AT Translated Set 2 keyboard' | cut -d '=' -f 2 | awk '{ print $1 }')
for id in $ids; do
setxkbmap -device "$id" -layout hr -option caps:escape
done