Installing DWM
DWM is lightweight window manager written in C.
Make sure you have a user already
Installing DWM
DWM is lightweight window manager written in C.
Make sure you have a user already
Install Xorg
pacman -S xorg-server xorg-xinit xorg-xrandr xorg-xsetrootInstall git
pacman -S gitInstall a browser
pacman -S firefoxCreate a config directory
mkdir ~/.configInstall DWM
git clone git://git.suckless.org/dwm ~/.config/dwm
git clone git://git.suckless.org/st ~/.config/st
git clone git://git.suckless.org/dmenu ~/.config/dmenucd ~/.config/dwm && sudo make install
cd ~/.config/st && sudo make install
cd ~/.config/dmenu && sudo make installInstalling a Display Manager (DM)
pacman -S lightdmpacman -S lightdm-gtk-greeterpacman -S lightdm-gtk-greeter-settings
Enable lightdm service
sudo systemctl enable lightdmAdding an entry for DWM in the DM
Open this file:
mkdir /usr/share/xsessionsvim /usr/share/xsessions/dwm.desktopAdd the following:
[Desktop Entry]
Encoding=UTF-8
Name=Dwm
Comment=the dynamic window manager
Exec=dwm
Icon=dwm
Type=XSessionBasic Commands
- Moving between windows:
[Alt]+[j] or [Alt]+[k] - To move a terminal to another tag:
[Shift]+[Alt]+[<TAG_NUMBER>] - To focus on another tag:
[Alt]+[tag number] - To change the amount of windows in the master area:
[Alt]+[d] (Decrease) or [Alt]+[i] (Increase) - To toggle a window between the master and stack area:
[Alt]+[Return] - To kill a window:
[Shift]+[Alt]+[c] - Click another tag with the right mouse button to bring those windows into your current focus.
Layouts
( Note ) By default dwm is in tiled layout mode.
- Tiled:
[Alt]+[t] - Floating:
[Alt]+[f] - Monocle:
[Alt]+[m]
Further layout modes can be included through patches.
Floating
To resize the floating window: [Alt]+[right mouse button]
Get chris@machine’s stories in your inbox
Join Medium for free to get updates from this writer.
To move it around [Alt]+[left mouse button]
Floating in Tiled Layout
- Toggle floating mode on the active window:
[Alt]+[Shift]+[space] - Resize the window:
[Alt]+[right mouse button] - toggle it in being floating
[Alt]+[middle mouse button]
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.
Quitting
To quit dwm cleanly: [Shift]+[Alt]+[q]
Status
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 X.org, this can be set using:
xsetroot -name "Some Text"







