Contents7 sections
What is dwm?
Dwm (Dynamic window manager) is an X11 window manager made by the suckless team.
The tiling schemes
Dwm comes with a few tiling schemes by default: Tiled, Monocle and floating. The tiled layout uses the master and stack areas. The master area has the most important windows on view, and the stack will have less important windows in its area. Monocle is similar to a full screen but you can toggle through the windows in the current tag (This will be explained later). Floating is simple, the windows float around like you would see in a typical desktop environment.
Tags
Tags are similar to workspaces in other window managers or virtual desktops in things such as KDE plasma. However, you can view multiple tags at once on a single screen. You can also put a single window into multiple tags at once. To open multiple tags the default keybind is to hold down the control key to view the current and chosen tag or to move a window to be on the current tag and another.
For example, you may have a browser window on tag 1 and 2 terminal windows on tag 2. If you are on tag 1 and hold control + the keybind to switch to tag 2, you will see the browser as well as your 2 terminal windows on the screen.
Keybinds
There are quite a few keybinds to remember whenever you use dwm, the default keybinds are as such:
See the keybinds
- Mod + j / Mod + k: Move focus
- Mod + Return (Enter): Move a window from the stack to master
- Mod + h / Mod + l: Resize the master/stack left
- Mod + 1-9: View another tag
- Mod + shift + 1-9: Move the focused window to another tag
- Mod + control + 1-9: View focused tag + another tag on your screen
- Mod + control + shift + 1-9: Move the focused window to also be viewable on another tag
- Mod + 0: View all tags
- Mod + t: Use the tiling scheme
- Mod + space: Use the floating scheme
- Mod + m: Use the monocle scheme
- Mod + i: Increase the number of windows shown on the master side
- Mod + d: Increase the number of windows shown on the stack side
- Mod + Shift + c: Kill the focused window
- Mod + shift + q: Quit dwm
Any of these can be changed to your preferences in the config. Mod can be set to Mod1 for the Alt key or Mod4 for the super/windows key.
Configuration
First, to understand the dwm configuration. You must understand that dwm does not have a traditional configuration method of editing a config file and reloading. Instead, dwm uses a config.h file which is compiled into the dwm binary. The configuration of dwm does require you to edit the config.h file and recompile + relaunch for any changes you what. The config.h file is technically C code, however if you are not a C programmer, you should be able to understand the configuration well enough to customise dwm to your liking.
Patches
There are a great many patches available for dwm. You can find patches that might interest you here. To install the patch you simply use the standard patch command.
patch -p1 < /path/to/patch.diff
The patch may fail and you will have to manually add in the code, so don't go crazy with the patches, they can start getting messy as you add more and more.
Compiling
To compile dwm you will need a few things. Of course you will need a C compiler as well as some X11 libraries and a maker. Simply run make in the dwm directory and if you are missing anything you will get an error. Just read the error and get what it needs.
Rating
3 ratingsLogin to like or dislike this post.
I personally use fedora sway's default configs, one thing I find cool with dam is having a window marked with multiple tags and being able to preview the tag. However, I find it annoying how you have to recompile it each time, can be annoying I feel like compared to editing config and pressing MOD SHIFT C to refresh.
I recommend you look into mangowc, it is based on wayland/wlroots the same as sway (if that matters) but can use tags just as dwm does. Mango also has the live config editing you are famiiar with.