script for cz <-> us layout
This commit is contained in:
parent
f35db645a2
commit
57c459f5ec
|
@ -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"
|
Loading…
Reference in New Issue