- 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 imlib2 git && \ git clone https://github.com/razobeckett/dwm && \ cd dwm && sudo make clean install
-
Ubuntu/Debian:
sudo apt install -y build-essential xorg libx11-dev libxinerama-dev libxft-dev libimblib2-dev git && \ 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.def.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.
DWM is a dynamic window manager for X. It manages windows in tiled, monocle, and floating layouts. All of the layouts can be applied dynamically, optimizing the environment for the application in use and the task performed.