2021-05-15 22:41:18 -06:00
|
|
|
# dmenubar - dynamic menu bar
|
|
|
|
|
2010-08-02 07:22:54 -06:00
|
|
|
dmenu is an efficient dynamic menu for X.
|
2021-05-16 09:32:24 -06:00
|
|
|
dmenubar is a hack on dmenu that displays a menu bar.
|
2021-05-15 22:41:18 -06:00
|
|
|
|
2021-05-16 10:34:38 -06:00
|
|
|

|
2021-05-16 09:29:23 -06:00
|
|
|
## Why
|
2021-05-15 22:41:18 -06:00
|
|
|
|
2021-05-16 09:29:23 -06:00
|
|
|
lemonbar [can't do TTF fonts](https://github.com/LemonBoy/bar/issues/188).
|
|
|
|
|
|
|
|
dmenubar intends to be a knockoff of lemonbar that can do TTF, basically.
|
|
|
|
I tore out a ton of the dmenu code, made stdin feed into the dmenu prompt, and
|
|
|
|
presto flavo. Code's not great but dmenubar.c (where most of the changes are)
|
|
|
|
is only ~300 lines so it could be worse.
|
|
|
|
|
|
|
|
## You shouldn't use this
|
|
|
|
|
|
|
|
If you use any features of lemonbar outside of the default settings you
|
2021-05-16 09:31:37 -06:00
|
|
|
probably won't be able to make dmenubar fit your workflow. Cosmetically, dmenu
|
|
|
|
lets you change the font and colors and whether it's on the top or the bottom
|
|
|
|
of the screen and that's about it.
|
2021-05-16 09:29:23 -06:00
|
|
|
|
|
|
|
The biggest issue is dmenubar draws *over* other windows the same way dmenu
|
|
|
|
does. I have my keybindings like this in sxhkd so I can pull up dmenubar and
|
|
|
|
then kill it when I'm done looking:
|
|
|
|
|
|
|
|
```
|
|
|
|
mod1 + i
|
|
|
|
ps x | grep dmenubar | grep -v grep && pkill dmenubar; \
|
|
|
|
show_bar_stuff | /home/trinity/src/dmenubar/dmenubar -b
|
|
|
|
|
|
|
|
mod1 + shift + i
|
|
|
|
pkill dmenubar
|
|
|
|
```
|
|
|
|
|
|
|
|
*Maybe* somebody will prefer this over how lemonbar does it? I don't know.
|
2021-05-15 22:41:18 -06:00
|
|
|
|
|
|
|
## Requirements
|
2006-08-04 01:35:27 -06:00
|
|
|
|
2006-08-04 09:15:07 -06:00
|
|
|
In order to build dmenu you need the Xlib header files.
|
2010-08-02 07:22:54 -06:00
|
|
|
|
2021-07-02 17:13:22 -06:00
|
|
|
On Alpine Linux:
|
|
|
|
|
|
|
|
```
|
|
|
|
apk add libx11-dev libxinerama-dev libxft-dev
|
|
|
|
```
|
|
|
|
|
2021-05-15 22:41:18 -06:00
|
|
|
## Installation
|
|
|
|
|
2010-08-02 07:22:54 -06:00
|
|
|
Edit config.mk to match your local setup (dmenu is installed into
|
|
|
|
the /usr/local namespace by default).
|
2006-08-04 01:35:27 -06:00
|
|
|
|
2010-08-02 07:22:54 -06:00
|
|
|
Afterwards enter the following command to build and install dmenu
|
|
|
|
(if necessary as root):
|
2006-08-04 01:35:27 -06:00
|
|
|
|
2021-05-15 22:41:18 -06:00
|
|
|
`make clean install`
|