- Application rules are defined in a separate file called
apprules.h
.
-
Arch Linux:
sudo pacman -S --needed base-devel xorg-server xorg-xinit libx11 libxinerama libxft git vim && \ git clone https://github.com/razobeckett/dwm && \ cd dwm && sudo make clean install
-
Ubuntu/Debian:
sudo apt install build-essential xorg libx11-dev libxinerama-dev libxft-dev git vim && \ git clone https://github.com/razobeckett/dwm && \ cd dwm && sudo make clean install
-
Clone the repository and change directory:
git clone https://github.com/razobeckett/dwm && cd dwm
- Compile and install:
make clean install
Important
If you are not a root user, you can use doas
or sudo
to run the command.
- After compiling, you can start the window manager using the following methods:
- for Xinit:
- put
exec dwm
in~/.xinitrc
at the end on new line - now run
startx
- put
- for display manager:
- paste dwm.desktop file in
/usr/share/xsessions/
- restart your display manager or system
- paste dwm.desktop file in
- for Xinit:
Note
These are just a few basic keybinds to get started; you can always add and modify them in config.h
.
Keybind | Function |
---|---|
Super + Return | Opens the terminal. |
Super + Space | Opens dmenu. |
ALT + [1..0] | Switches between tags (workspaces). |
ALT + SHIFT + [1..0] | Moves window between tags (workspaces). |
ALT + SHIFT + L/H | Moves window right and left respectively. |
ALT + Q | Closes the window. |
- picom: Enables effects and animations.
- dwmblocks-async: Displays system status and date/time.
Caution
This Build of DWM been heavily modified; if you wish to apply any patches, it is recommended to do so manually.