Created
April 11, 2018 11:44
-
-
Save kayofeld/7b5f0f2ee93be0483a42ef31c6f08356 to your computer and use it in GitHub Desktop.
This file contains 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 | |
keymap=`setxkbmap -query | grep "layout" | cut -d" " -f06` | |
if [ $keymap == "us" ] | |
then | |
setxkbmap fr | |
else | |
setxkbmap us | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment