Skip to content

Instantly share code, notes, and snippets.

@ze-
Created March 13, 2014 22:10
Show Gist options
  • Save ze-/9538110 to your computer and use it in GitHub Desktop.
Save ze-/9538110 to your computer and use it in GitHub Desktop.
toggles between dvorak and qwerty, i bind it in my wm to Super+semicolon (awkward and rare to press by accident)
#!/bin/sh
CURRENT=$(setxkbmap -print | grep symbols | cut -d\( -f2 | cut -d\) -f1)
if [ "$CURRENT" == "dvorak" ];then
setxkbmap us
else
setxkbmap dvorak
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment