xresources
Runtime configuration using X Resources.
Description
This patch adds Xresources support to dmenu. At startup, dmenu reads the relevant X resources and applies them at runtime. A declarative array defines the resources, making the patch easy to extend with more settings. dmenu recognizes the following resources by default:
dmenu.font: font or font setdmenu.prompt: prompt stringdmenu.background: normal background colordmenu.foreground: normal foreground colordmenu.backgroundSel: selected background colordmenu.foregroundSel: selected foreground colordmenu.backgroundOut: output background colordmenu.foregroundOut: output foreground colordmenu.topbar: position of dmenu at top (1) or bottom (0)dmenu.lines: number of lines for vertical display
Values set in Xresources override those in config.h. Command line arguments take precedence over both.
Download
- dmenu-xresources-4.9.diff (2020/05/24)
- dmenu-xresources-alt-5.0.diff (2021/04/15)
- dmenu-xresources-20260510-7175c48.diff
Authors
- MichaĆ Lemke - @melek on Bitbucket
- Pratik Bhusal (4.9 port)
- Nihal Jere nihal@nihaljere.xyz (20200302)
- Francesco Minnocci ad17fmin@uwcad.it (command line parameters fix)
- Vadim Zyamalov (alt-5.0)
- Justinas Grigas dev@jstnas.com (20260510)