Created
August 10, 2012 15:26
-
-
Save jpcaruana/3315019 to your computer and use it in GitHub Desktop.
switch between dvorak and azerty keyboards
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