Autostarting apps
If using a display manager make the session execute a script (refer to xsession). Same could be done with startx
and ~/.xinitrc
. My modified version provides my autostarting script and installs it as /usr/local/bin/startdwm
The script could look something like
#!/bin/sh
#/usr/local/bin/startdwm
slstatus &
pasystray &
nm-applet &
exec dwm
You might also like the systray patch as it just makes sense.