Git Product home page Git Product logo

xkbmon

A versatile keyboard layout monitor for X11.

Table of Contents

Features

  • real-time monitoring with zero CPU usage
  • output layout in lower, upper or camel case
  • extra low memory footprint
  • zero dependency (only XCB)

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 libxcb-xkb-dev

RPM-based distro

yum install libxcb-devel

Build & Run

make
./xkbmon

License

MIT

xkbmon's Projects

xkbmon icon xkbmon

A versatile keyboard layout monitor for X11

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.