Skip to content

Instantly share code, notes, and snippets.

@NeoTheFox
Last active February 20, 2018 22:27
Show Gist options
  • Save NeoTheFox/a5482d1345138c91125c to your computer and use it in GitHub Desktop.
Save NeoTheFox/a5482d1345138c91125c to your computer and use it in GitHub Desktop.
#!/usr/bin/sh
if [ -z "$1" ]
then
echo "No argument supplied"
else
export DISPLAY=$1
fi
if pgrep Xorg > /dev/null
then
/usr/bin/setxkbmap -layout 'us,ru'
/usr/bin/setxkbmap -variant ',phonetic_winkeys'
/usr/bin/setxkbmap -option 'grp:caps_toggle'
/usr/bin/echo "Keyboard options had been set"
else
echo "No Xorg running"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment