aboutsummaryrefslogtreecommitdiff
path: root/misc/bin/toggle-dvorak.sh
blob: 2dc75dfb3a90da5a89c2c80f3d24775a12c0deaa (plain) (blame)
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