Going Back to DWM

It's such a comfy window manager. I have my own build of DWM - I don't recall if I patched it at all (if I have, then only 1 or 2 (or maybe 3)).


Let's get dependencies sorted out. On Void Linux, sudo xbps-install base-devel libX11-devel libXft-devel libXinerama-devel freetype-devel fontconfig-devel.

Getting the source code

Create a directory where you'll clone the source code. Generally, it seems like DWM, Dmenu and ST are installed together. I don't need ST, so I won't install that. I'll keep on using the good ol' xfce4-terminal.

cd into this new directory. Then,

git clone https://git.suckless.org/dwm
git clone https://git.suckless.org/dmenu


Now, let's build DWM first. Change directory to wherever the DWM source code is. Then, run make followed by sudo make clean install.

You can follow the same procedure for Dmenu and/or ST.

Starting DWM

You can start DWM from a TTY. The executable produced is located at /usr/local/bin/dwm. If you use startx, then startx /usr/local/bin/dwm. This could be automated; I don't have that know-how.

If you use a display manager, then we'll need to create a .desktop file.

touch dwm.desktop. We'll put the following content in it:

[Desktop Entry]
Comment=Dynamic Window Manager

This file goes in /usr/share/xsessions. DWM should now be selectable from your display manager.


Picom for compositing. Nitrogen to set a wallpaper.

Making Edits

The unfortunate situation is that you're going to have to rebuild DWM anytime you modify its config file. Then you log out and log back in.

This article was written on 22/09/2023. If you have any thoughts, feel free to send me an email with them. Have a nice day!