Skip to content

Instantly share code, notes, and snippets.

@linuxoid69
Created June 9, 2015 15:37
Show Gist options
  • Save linuxoid69/a561bdbb56f56187db43 to your computer and use it in GitHub Desktop.
Save linuxoid69/a561bdbb56f56187db43 to your computer and use it in GitHub Desktop.
keyboard layout
#!/bin/bash
CURRENT=$(setxkbmap -query | grep layout | awk '{print $2}')
if [[ $CURRENT == 'ru' ]]
then
setxkbmap us
else
setxkbmap ru
fi
@linuxoid69
Copy link
Author

Скрипт для переключения раскладки. Можно забиндить на любые кнопки.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment