Skip to content
/ xkbmon Public

Minimalistic asynchronous command-line keyboard layout monitor for X11. Useful for configuring i3blocks.

License

Notifications You must be signed in to change notification settings

everard/xkbmon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DESCRIPTION

This repository contains the source code for a simple stand-alone zero-config XKB keyboard layout monitor. This program has very minimal RAM/CPU footprint and might come in handy if you are using i3blocks.

Note: This program only shows currently selected keyboard layout and makes no attempts to manage layouts based on active window ID or active window's process ID.

COMPILATION/INSTALLATION

Run make in your command line to compile.

Note: A C11-capable compiler is required; Xlib development headers must be installed.

The compiled binary can be copied to the /usr/local/bin/ directory using the following command.

sudo make install

The installed binary can be removed from the /usr/local/bin/ directory using the following command.

sudo make uninstall

USAGE

Command line

To start monitoring the keyboard layouts, run:

xkbmon

i3blocks

Add the following block to the i3blocks config file:

[xkbmon]
command=xkbmon
interval=persist

LICENSE

Copyright Nezametdinov E. Ildus 2020.

Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)

About

Minimalistic asynchronous command-line keyboard layout monitor for X11. Useful for configuring i3blocks.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published