Installing DWM


Make sure you have a user already

Install Xorg

pacman -S xorg-server xorg-xinit xorg-xrandr xorg-xsetroot

Install git

pacman -S git

Install a browser

pacman -S firefox

Create a config directory

mkdir ~/.config

Install DWM

git clone git:// ~/.config/dwm
git clone git:// ~/.config/st
git clone git:// ~/.config/dmenu
cd ~/.config/dwm && sudo make install
cd ~/.config/st && sudo make install
cd ~/.config/dmenu && sudo make install

Installing a Display Manager (DM)

pacman -S lightdm

pacman -S lightdm-gtk-greeter

pacman -S lightdm-gtk-greeter-settings

Enable lightdm service

sudo systemctl enable lightdm

Adding an entry for DWM in the DM

Open this file:

mkdir /usr/share/xsessions

vim /usr/share/xsessions/dwm.desktop

Add the following:

[Desktop Entry]
Comment=the dynamic window manager

Basic Commands


( Note ) By default dwm is in tiled layout mode.

Further layout modes can be included through patches.


To resize the floating window: [Alt]+[right mouse button]

To move it around [Alt]+[left mouse button]

Floating in Tiled Layout

If you want to set some type of window to be always floating, look at the config.def.h and the rules array, where the last but one element defines this behaviour.


To quit dwm cleanly: [Shift]+[Alt]+[q]


By default dwm is showing dwm-X.X in its statusbar. This text can be changed by setting the WM_NAME property of the root window.

Using the tools of, this can be set using:

xsetroot -name "Some Text"