Created
January 16, 2015 09:40
-
-
Save voidcontext/d605e9ddd4b9a4c45d23 to your computer and use it in GitHub Desktop.
Switch keyboard layout
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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