Last active
February 20, 2018 22:27
-
-
Save NeoTheFox/a5482d1345138c91125c to your computer and use it in GitHub Desktop.
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
#!/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