Skip to content

DmitryMyadzelets/xlayout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

xlayout

Get current keyboard layout in Linux. Based on the code of Filip Krikava.

> xlayout
Full name: Italian
Layout name: it

Compilation and Installation

You may need to install some packages for compilation:

apt install gcc x11proto-dev

Compile:

gcc -I/usr/include xlayout.c -lX11 -lxkbfile -o xlayout

Move it to a directory where your shell searces for executables. For instance:

echo $PATH
mv xlayout ~/bin/

Usage Tips

Get layout short name:

xlayout | grep Layout | cut -d' ' -f3

Alternatives

About

Get current keyboard layout in Linux

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages