1 2 3 4 5 6 7 8
#!/bin/bash qwerty=$(setxkbmap -print -verbose 10 | grep "layout:.*us") if [ -n "$qwerty" ]; then setxkbmap dvorak else setxkbmap us fi