Skip to content
forked from xkbmon/xkbmon

A versatile keyboard layout monitor for X11

License

Notifications You must be signed in to change notification settings

krackout/xkbmon

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xkbmon

A versatile keyboard layout monitor for X11.

Build Status

Table of Contents

Features

  • real-time monitoring with zero CPU usage
  • output layout in lower, upper or camel case

Examples

tmux

tmux status panel

Add to .tmux.conf:

set -g status-right '#[fg=white]#[bg=blue] #(xkbmon -u) '

Tint2

tint2 executor

Add to tint2rc:

-------------------------------------
# Executor 1
execp = new
execp_command = xkbmon -u
execp_interval = 1
execp_has_icon = 0
execp_cache_icon = 1
execp_continuous = 1
execp_markup = 0
execp_font = Sans Bold 9
execp_font_color = #dcdcdc 100
execp_padding = 0 0
execp_background_id = 0
execp_centered = 0

dwm

dwm status

Add to .xsession

xkbmon -u | while read -r line; do xsetroot -name $line; done &

i3 with i3blocks

i3 i3blocks

Add to i3blocks.conf:

[xkbmon]
command=xkbmon -u
interval=persist
color=#2E9EF4

Build Instructions

DEB-based distro

apt install libx11-dev

RPM-based distro

yum install libX11-devel

Build & Run

make
./xkbmon

License

MIT

About

A versatile keyboard layout monitor for X11

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 98.3%
  • Makefile 1.7%