Install dwm from git repository

update: 29/03/2018

$ sudo apt update
$ sudo apt install xorg build-essential suckless-tools libxft-dev libxinerama-dev libx11-dev
$ git clone
$ cd dwm

* Create config file:

$ wget

for more of dwm configuration, see customisation.

$ vim config.h


* Installing:

$ sudo make clean install


* file of configures

.xsession file: use for configure dwm x session

 wget -O ~/.xsession

.Xresources file: use for configure xterm

$ wget ~/


* Plus:  Install for Debian

if your use Debian GNU/Linux, you shoulded used the repo:

$ sudo apt source dwm
$ cd dwm*
$ cp config.def.h config.h
$ sudo make
$ sudo checkinstall

this create los .deb and only is install

$ sudo dpkg -i dwm*.deb

so you can uninstall dwm with dpkg -r dwm

* Configure X Session Manager:

$ sudo update-alternatives --config x-session-manager
There is only one alternative in link group x-session-manager (providing /usr/bin/x-session-manager): /usr/bin/gnome-session
Nothing to configure.

$ sudo update-alternatives --install $(which x-session-manager) x-session-manager $(which dwm) 20

$ sudo update-alternatives --list x-session-manager

$ sudo update-alternatives --config x-session-manager
There are 2 choices for the alternative x-session-manager (providing /usr/bin/x-session-manager).

Selection Path Priority Status
* 0 /usr/bin/gnome-session 50 auto mode
 1 /usr/bin/gnome-session 50 manual mode
 2 /usr/local/bin/dwm 20 manual mode

Press <enter> to keep the current choice[*], or type selection number: 2
update-alternatives: using /usr/local/bin/dwm to provide /usr/bin/x-session-manager (x-session-manager) in manual mode


* Support Display Manager:

$ sudo wget -O /usr/share/xsessions/dwm.desktop
$ sudo update-alternatives --install $(which x-window-manager) x-window-manager $(which dwm) 20
$ chmod 744 .xsession (only if it is necessary)


* Install and Configure ST – Simple Terminal:

I like use st, so you can install and configure simple terminal:

$ git clone git://
$ cd st/
$ wget
$ sudo make clean install

Configure alternative for Debian:

$ sudo update-alternatives --list x-terminal-emulator
$ sudo update-alternatives --install $(which x-terminal-emulator) x-terminal-emulator $(which st) 20 
$ sudo update-alternatives --config x-terminal-emulator


* Install slstatus:



Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de

Estás comentando usando tu cuenta de Cerrar sesión /  Cambiar )

Google photo

Estás comentando usando tu cuenta de Google. Cerrar sesión /  Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión /  Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión /  Cambiar )

Conectando a %s