wk - Which-Key via X11 and Wayland. Displays available key chords in a popup window. Inspired by emacs-which-key, dmenu, and bemenu. wk offers users a

Search code, repositories, users, issues, pull requests...

submited by
Style Pass
2024-05-08 00:30:11

wk - Which-Key via X11 and Wayland. Displays available key chords in a popup window. Inspired by emacs-which-key, dmenu, and bemenu.

wk offers users a portable, scriptable, and highly customizable interface for their key chord mappings through a number of sources. Key chords can be built into the binary via the key_chords.def.h header, read from a wks file, or read from stdin with the same wks syntax.

Wayland is only supported by compositors that implement the wlr-layer-shell protocol. Typically wlroots-based compositors. For those not on a wlroots-based compositor, Xwayland does work based on my testing, but the popup menu seems to only display on one screen.

wk can be configured at the command line as shown in the above help message, or your configuration can be built into the binary by changing the settings in config.def.h.

Which-Key source (wks) files are the driving force behind wk. The syntax is novel but provides a flexible means to manage and express key chords.

Leave a Comment