[DWM] How to recompile?

Care to explain how you recompile dwm after installing it from ports? where is the config.h located and how do i recompile it for my system again after changing it?
 
You need to deinstall the port and reinstall it pointing to desired config.h.

In other words:
Code:
# cd /usr/ports/x11-wm/dwm; make deinstall clean; make DWM_CONF=/path/to/config/config.h install clean

This information was printed when you first installed the port and is also described within /usr/ports/x11-wm/dwm/Makefile.
 
use:
Code:
make DWM_CONF=<path to config>
make install clean

To get config.h copy dwm.tar.gz form /usr/ports/distfiles and extract it. config.def.h inside. Save it...
 
Like Case said you might need a config.h to start customizing dwm.

If you can run:
Code:
# make extract
$ cp /usr/ports/x11-wm/dwm/work/dwm-5.6/config.def.h ~/config.h

And start toying with the window manager's configuration file.
 
  • Thanks
Reactions: 0mp
Thanx alot it helped. Have a litte problem with mplayer though, I set mplayer to start as floating true in the config but still it shows up as a very large screen on half my desktop. in wmii it starts with a nice floating size in the middle.
 
Most convenient way to customize dwm is editing /etc/make.conf

Code:
.if ${.CURDIR:M*/x11-wm/dwm}
DWM_CONF=path_to_config.h
.endif
 
Here is my part of config.def.h about mplayer:

Code:
 { "MPlayer",  NULL,        NULL,       0,          True,        -1 }

I have no problems with it.
 
Back
Top