My fork of dwlb, a fast, feature-complete bar for dwl.
This fork includes minor changes and personalisations:
- Properly renders multi-color glyphs instead of treating them as monochrome masks.
- Replaced and updated deprecated
fcftscaling filter for high-DPI displays. - Personalised Defaults:
- Vacant tags are hidden by default.
- Adjusted padding and color scheme.
- Default font set to FiraMono Nerd Font.
- libwayland-client
- libwayland-cursor
- pixman
- fcft (>= 3.0.0)
git clone [https://github.com/afj8z/dwlb](https://github.com/afj8z/dwlb)
cd dwlb
make
make installYou can launch dwlb directly within the dwl command or as a standalone process.
Pass dwlb as an argument to dwl's -s flag.
dwl -s 'dwlb -font "FiraMono Nerd Font Mono:size=16"'- Launch
dwlbin the background with IPC enabled and desired scaling. - Pipe status info into
dwlbusing-status-stdin.
#!/bin/sh
# Cleanup previous instances
killall -9 dwlb aslstatus 2> /dev/null
# Processes you want to launch alongside dwl
hypridle &
swww-daemon &
mako &
# Launch dwlb (IPC enabled, scaled for HiDPI)
# Sleep ensures dwlb is ready before accepting status input
(dwlb -ipc -scale 2; sleep 0.2) &
# Pipe aslstatus output to dwlb
aslstatus -s | dwlb -status-stdin all &If dwl is patched with IPC, dwlb can communicate directly with it.
- Enable with
-ipc. - Clicking tags/layouts works instantly.
- Disable with
-no-ipc.
Control dwlb instances via command line options. Target specific outputs with a name, all, or selected.
Status text sent to stdin can contain formatting commands: ^cmd(argument).
| Command | Description |
|---|---|
^fg(HEX) |
Set foreground color (e.g., ^fg(ff0000)). |
^bg(HEX) |
Set background color. |
^lm(CMD) |
Left click action. |
^mm(CMD) |
Middle click action. |
^rm(CMD) |
Right click action. |
^us(CMD) |
Scroll up action. |
^ds(CMD) |
Scroll down action. |
Example:
dwlb -status all 'text ^bg(ff0000)^lm(foot)Click Me^bg()^lm() text'Edit config.h to change compile-time defaults (colors, fonts, tags).
- Runtime Options: Run
dwlb -hfor a full list of flags (e.g.,-bottom,-hide-vacant-tags).
