Keyboard Layout Plugin for Wayfire
Based on simple IPC sockets. The plugin creates a socket /tmp/kbl_server
and each client creates a socket /tmp/kbl_client_<timestamp>
. Clients send a request to the server (plugin), and the server (plugin) sends the current keyboard layout when it changes.
When the server (plugin) shuts down, it sends end message "--" to each client. So clients stop listening at this moment.
- When the client starts print the current layout (currently it only prints on first key event after the client starts)
meson build
ninja -C build && sudo ninja -C build install
Enable plugin and run wf-kbl
command
wf-kbl
It will print the current keyboard layout when it is changed.
Can be used as Waybar module
"custom/wf-kbl": {
"format": "{}",
"exec": "wf-kbl"
}