Skip to content

Instantly share code, notes, and snippets.

@voidcontext
Created January 16, 2015 09:40
Show Gist options
  • Save voidcontext/d605e9ddd4b9a4c45d23 to your computer and use it in GitHub Desktop.
Save voidcontext/d605e9ddd4b9a4c45d23 to your computer and use it in GitHub Desktop.
Switch keyboard layout
#!/bin/bash
CURRENT=`setxkbmap -query | grep layout | awk '{print $2}'`
if [ "$CURRENT" == "us" ]; then
setxkbmap hu
else
setxkbmap us
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment