script for cz <-> us layout

This commit is contained in:
TUNQRT 2025-09-30 16:31:12 +02:00
parent f35db645a2
commit 57c459f5ec
1 changed files with 10 additions and 0 deletions

10
switch_keyboard.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
current=$(setxkbmap -print | grep symbols)
current=${current#*\+}
current=${current%\+*}
new=$( [[ $current == "us" ]] && echo "cz" || echo "us" )
setxkbmap $new
echo "$current -> $new"