personal fork
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2.1 KiB

dwm - dynamic window manager

dwm is an extremely fast, small, and dynamic window manager for X. This is an fork and adapted version which contains my keybindings and settings.



In order to build dwm you need the Xlib header files.


Edit to match your local setup (dwm is installed into the /usr/local namespace by default).

Afterwards enter the following command to build and install dwm (if necessary as root):

make clean install

Running dwm

Add the following line to your .xinitrc to start dwm using startx:

exec dwm

In order to connect dwm to a specific display, make sure that the DISPLAY environment variable is set correctly, e.g.: exec dwm

(This will start dwm on display :1 of the host

In order to display status info in the bar, you can do something like this in your .xinitrc:

while xsetroot -name "`date` `uptime | sed 's/.*,//'`"
    sleep 1
done &
exec dwm


The configuration of dwm is done by creating a custom config.h and (re)compiling the source code.


Commandkeys: Windows


  • 0-9: Workspaces
  • Tab or backslash: last workspace
  • g: iterating through workspaces right -> left
  • ;: iterating through workspaces left -> right


  • t: tile layout
  • Shift + t: bstack
  • y: spiral
  • Shift + y: dwindle
  • u: deck
  • Shift + u: monocle
  • i: centermaster
  • Shift + u: centeredfloatingmaster
  • o: Horizontal
  • Shift: Vertical


  • q: kill window
  • s: toggle sticky
  • f: fullscrean
  • h: increase window size to left
  • l: increse window sie to right
  • Enter: summon terminal
  • Shift + Enter: floating terminal

Window Movement

  • Shift + f: free float
  • Shift + g: move current window to left workspace
  • Shift + ;: move current window to right workspace
  • Space: switch top most windows on stack


  • a: toggle gaps
  • Shift + a: default gaps
  • z: increase gaps
  • x: decrease gaps


  • b: toggle statusbar