Can you customize dmenu?
Hey. I have a question :-) Can you customize dmenu? I'd like to know if there is a file or fork of dmenu that I can change it's appearance. Really I would like to change it's width to match the i3bar.
I put this under Arch because the packages might be Arch pacific: Thanks for reading. Hope there is a way. |
Quote:
Code:
git clone http://git.suckless.org/dmenu Code:
# paths Code:
cp config.def.h config.h For the bar height, modify dmenu.c Code:
vim dmenu.c Code:
bh = drw->fonts[0]->h + 2; Code:
make It is also possible to use the PKGBUILD found in the ABS to install the git version with pacman. |
Perfect. This will give me the opportunity to learn about the Arch Build System.
Thanks for your reply. It is very helpful :-) |
You're welcome :)
|
Hi, sorry about this but I have one last query.
I have tried the Arch way but something isn't quite working. I have used abs to build from source: #abs community/dmenu $mkdir $HOME/abs $cp -r /var/abs/community/dmenu ~/abs $cd ~/abs/dmenu $makepkg -s Once it is finished I am left with folders and a dmenu-***.pkg.tar.xz file and I make the changes I wanna make in ~/abs/dmenu/src/dmenu I $cp config.def.h config.h and edit the config.h, config.mk and dmenu.c dmenu.c doesn't have the line you described but I found bh = dc->font.height + 2; on line 552 which I figured must be it. next thing is I use #pacman -U dmenu-***.pkg.tar.xz and the program is installed but no changes are made. I can only assume that the folder are irrelevant and the changes I should be making are in fact in the pkg.tar.xz file. I'd love to know what I am missing or doing wrong. Please let me know. Thanks again :-) |
Quote:
Quote:
Code:
makepkg -efi Code:
makepkg -efi --skipinteg |
Eurika! Thank you :-)
To clarify I used: $mkdir ~/abs $abs repository/package $cp -r /var/abs/repository/package ~/abs $makepkg -s (in ~/abs/package_folder) (Made the changes I wanted/needed) $makepkg -efi --skipinteg (again, in ~/abs/package_folder) So far I've had no problems. I am sure I can fiddle to my hearts content should I desire it but the dmenu looks a lot smarter and matches with the i3bar perfectly :-) Cheers, again! |
You're welcome, glad you got it working.
dmenu FTW! :) |
All times are GMT -5. The time now is 04:17 AM. |