1 min read

DWM Configuration Guide

DWM Configuration Guide
Photo by Gabriel Heinzer / Unsplash

Cloning DWM

mkdir -p ~/.suckless
cd ~/.suckless
git clone git://git.suckless.org/dwm

Configuring DWM

First customize config.h. You can explore it. But I'll recommend a few customizations to config.h. These customizations will work in dwm-6.5. You can check your version with dwm -v after installation.

make # build dwm
sudo make install # install dwm

  • Before: #define MODKEY Mod1Mask
  • After: #define MODKEY Mod4Mask

  • Before: static const char *termcmd[] = { "st", NULL };
  • After: static const char *termcmd[] = { "PUT YOUR TERMINAL HERE", NULL };

  • And customize keys.

Patching DWM

These patches should work with dwm-6.5

Systray

  • First, download patch
wget https://codeberg.org/nxjoseph/suckless-patches/raw/branch/master/dwm/patch-05-systray -o ~/.suckless/dwm/systray.patch
  • And apply patch
cd ~/.suckless/dwm && git apply -v systray.patch