diff --git a/keyboard-set b/keyboard-set index 7995e49..7bc9ade 100755 --- a/keyboard-set +++ b/keyboard-set @@ -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