Skip to content

Latest commit

 

History

History
36 lines (31 loc) · 796 Bytes

README.md

File metadata and controls

36 lines (31 loc) · 796 Bytes

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