Created
July 18, 2012 09:09
-
-
Save jbpotonnier/3135170 to your computer and use it in GitHub Desktop.
Switch between dvorak and fr keyboard. I map it using my window manager
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 | |
kbd=`setxkbmap -query | grep layout | awk '{print $2}'` | |
if [ 'fr' = $kbd ] | |
then | |
notify-send 'Keyboard is now Dvorak' | |
setxkbmap dvorak en -option compose:ralt | |
else | |
notify-send 'Keyboard is now French' | |
setxkbmap fr -option | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment