Skip to content

Instantly share code, notes, and snippets.

@pulketo
Created July 23, 2021 04:51
Show Gist options
  • Save pulketo/e667caaecdce677f4b4f6855b752dda7 to your computer and use it in GitHub Desktop.
Save pulketo/e667caaecdce677f4b4f6855b752dda7 to your computer and use it in GitHub Desktop.
get current active keyboard layout
sudo apt-get install git
mkdir -p `~/src`
cd `~/src`
git clone https://github.com/nonpop/xkblayout-state.git
cd xkblayout-state
make
#
./xkblayout-state print %s
#
src:https://stackoverflow.com/questions/21483050/get-current-active-keyboard-layoutlanguage-in-linux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment