nate zhou ee54a3413c
bar-modes: show status text when space permits
Try to truncate title before hiding status, with longer modes labels.
2026-03-15 14:30:44 +08:00
..

dwl bar-modes patch example

Description

Add a mode indicator to bar that tells which mode you are in, just like river-classic's dam bar.

The string from modes_labels defined in config.h is used, while normal mode is ignored.

Another usage is to serve as a hint for each modes keybindings:

enum {
    BROWSER,
};
const char *modes_labels[] = {
    "[f]irefox [b]rave [c]hromium [q]utebrowser",
};

Dependencies

this patch depends on:

Download

Authors