A versatile keyboard layout monitor for X11.
- real-time monitoring with zero CPU usage
- output layout in lower, upper or camel case
Add to .tmux.conf
:
set -g status-right '#[fg=white]#[bg=blue] #(xkbmon -u) '
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
Add to .xsession
xkbmon -u | while read -r line; do xsetroot -name $line; done &
Add to i3blocks.conf
:
[xkbmon]
command=xkbmon -u
interval=persist
color=#2E9EF4
apt install libx11-dev
yum install libX11-devel
make
./xkbmon