Quote:
Originally Posted by itscience
Really I would like to change it's width to match the i3bar.
|
To modify the height of the dmenu bar, you will have to download the source code and modify that.
Code:
git clone http://git.suckless.org/dmenu
cd dmenu
You will need to alter the paths in
dmenu/config.mk to this:
Code:
# paths
PREFIX = /usr
MANPREFIX = ${PREFIX}/share/man
X11INC = /usr/include/X11
X11LIB = /usr/lib/X11
Then copy the default configuration file to a user-alterable version:
Code:
cp config.def.h config.h
Then modify
config.h to your taste (the latest MASTER branch now has Xft support so you can use a fancy font if you wish).
For the bar height, modify
dmenu.c
Go to line 617 (this is specific to the current MASTER branch):
Code:
bh = drw->fonts[0]->h + 2;
This line sets the height of the bar ("bh") to the height of the font plus two pixels ("h + 2") -- simply change "2" to whichever value you want and compile and install the package:
Code:
make
# make install
Alternatively, you could modify the version found in the repositories by using the
Arch Build System and install with pacman (
ie, the "correct" way) -- the line is very similar but is at a different line number.
It is also possible to use the PKGBUILD found in the ABS to install the git version with pacman.