Skip to content

vvh413/wf-kbl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wf-kbl

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.

TODO

  • When the client starts print the current layout (currently it only prints on first key event after the client starts)

Build

meson build
ninja -C build && sudo ninja -C build install

Usage

Enable plugin and run wf-kbl command

wf-kbl

It will print the current keyboard layout when it is changed.

Waybar module

Can be used as Waybar module

"custom/wf-kbl": {
    "format": "{}",
    "exec": "wf-kbl"
}