Code Monkey home page Code Monkey logo

xkbmon's Introduction

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 People

Contributors

noscript avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

xkbmon's Issues

Undesirable addition space

Sometimes, the pattern has not been revealed, the output is supplemented to the right of the language sign with spaces (tabs?) for 3-4 characters of empty space.

Maybe, but I'm not sure, this happens after wake up from sleep mode or killing and re-run compton (for gaming).

Gentoo x64, tint2-17.0.2, openbox.

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.