Skip to content

Instantly share code, notes, and snippets.

@kayofeld
Created April 11, 2018 11:44
Show Gist options
  • Save kayofeld/7b5f0f2ee93be0483a42ef31c6f08356 to your computer and use it in GitHub Desktop.
Save kayofeld/7b5f0f2ee93be0483a42ef31c6f08356 to your computer and use it in GitHub Desktop.
#! /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