Going Back to DWM

I've replaced this article with Setting up DWM. Check that out instead.

Dependencies

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

Building

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]
Encoding=UTF-8
Name=DWM
Comment=Dynamic Window Manager
Exec=/usr/local/bin/dwm
Icon=dwm
Type=XSession

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

Utilities

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!