Normally if you want to install a wm, you do it from ports. Also tiling wm you can install them from ports but the have the default "enviroment".
If you want to customize them, you need the source. So there is no reason to install them from ports. You are doing exact the same that ports do but you have the choise of customization because you have the source.If you install them from ports the source also can be found on /usr/ports/distfiles
So if you are not doing it from ports do this:
Code:
fetch http://dl.suckless.org/dwm/dwm-5.8.tar.gz
Extract the tar and inside the folder there is a file named config.h
This is your config file to make all your changes.
Open it with your favorite editor (ee is the default by the system)
And now make the changes.
The first section is appearance. Change the color with them you like.
On the section tagging you can change the name of desktops.
If you don't want to say 1,2,3,4,5 ect can say xterm,web,media etc
Mine is:
Code:
static const char *tags[] = { "xterm", "web", "media", "work", "task", "prog", "tools", "misc", };
On the section commands on "static const char *termcmd" set your terminal.
I use urxvt so mine is:
Code:
static const char *termcmd[] = { "urxvt", NULL };
That's it!
Save the file
Now run
And will create a binary file on /usr/local/bin named dwm
This is your wm
Now go to /home/user
Open the .xinitrc file with ee (if don't exist create it) and copy this
Code:
setxkbmap -option terminate:ctrl_alt_bksp
feh --bg-scale [B]set the path of you wallpaper[/B]
while true;
do
xsetroot -name ["$(date +"%a %b %d %r")"]
sleep 1s
done &
exec dwm
Now run startx and thats it!!!
You have dwm