/xkblang

Simple program for getting and setting current keyboard layout of the system using X11

Primary LanguageCMIT LicenseMIT

Xkblang

Build Status licence

Xkblang is a simple program for getting current keyboard layout. Primarily this program was written for i3blocks blocklet for getting current layout.

Installation

Xkblang written on pure C. The only dependency is libX11.

$ make
$ sudo make install

OR with deb packet:

$ dpkg -i xkblang_1.0-1.deb

Usage

$ xkblang -p
English (US)

For short version:

$ xkblang -ps
En

To list all available layouts:

$ xkblang -l
0. English (US)
1. Russian

To set layout:

$ xkblang -t 0