xkb-layout-monitor
xkb_layout_monitor
Continually monitors changing of X11 keymap and prints the keymap on a new line on stdout.
xkb_layout_monitor was made specifically for the tint2 panel, but might also work for other panels or information-displays which can monitor stdout.
Building
You can build either with static or dynamic linking.
Static will include all needed libraries in the finished executable, and it will therefore be larger. But it will work on other systems than which it is built on, without having to install any extra libraries.
Dynamic needs the required libraries (and correct versions of them) to be installed on any computers the application should be run on.
Static linking
Dependencies for building:
- Podman
(Docker should probably also work with minor changes to the Makefile, but it's untested.)
Run make static
or make static-release
to build the binary.
Dynamic linking
Dependencies for building:
- Crystal
- libxcb-xkb-dev
Run make
or make release
to build the binary.
Installation
Copy bin/xkb_layout_monitor
to a directory in your path, like $HOME/.local/bin
(for the current user) or /usr/local/bin
(for system-wide use).
Contributors
Created by Tomas Åkesson tomas@entropic.se
Inspired by https://github.com/xkbmon/xkbmon by Sergey Vlasov
See LICENSE for license details.
Project homepage: https://gitlab.com/entropic-software/xkb-layout-monitor
xkb-layout-monitor
- 0
- 0
- 0
- 0
- 0
- about 1 year ago
- July 28, 2023
MIT License
Thu, 21 Nov 2024 21:57:39 GMT