Screenshots of my personal dwm build. dwm is an extremely fast, small, and dynamic window manager for X.
dwm is created by the suckless.org community. The patches I added to this build include:
- restartsig (allows dwm to be restarted with a keybinding)
- actualfullscreen (toggle fullscreen for a window, instead of toggling the status bar and the monocle layout)
- moveresize (allows you to move and resize dwm’s clients using keyboard bindings)
- noborder (Remove the border when there is only one window visible)
- scratchpads (enables multiple scratchpads, the same scratchpad workflow in i3)
- libxft or libxft-bgra (needed for colored emojis)
- ttf-fira-sans
- ttf-font-awesome (version 5)
- ttf-joypixels
- st (suckless terminal, checkout my personal build HERE)
- slstatus (suckless status bar)
- dmenu (app launcher)
Also, if you are building this on an Ubuntu-based system, you need to install libx11-dev
and xorg-dev
.
All you need to do is download this repository. Then run the following command:
git clone https://www.github.com/kebairia/dwm
cd dwm
sudo make install clean
NOTE: Installing dwm will overwrite your existing dwm installation.
The MODKEY is set to the Super key (aka the Windows key). I try to keep the keybindings consistent with all of my window managers, but if you several of my window manager configs, there may be some discrepancies between them.
Keybinding | Action |
---|---|
MODKEY + RETURN | opens terminal (st is the terminal but can be easily changed) |
MODKEY + p | opens run launcher (dmenu is the run launcher but can be easily changed) |
MODKEY + SHIFT + r | restarts dwm |
MODKEY + SHIFT + q | quits dwm |
MODKEY + 1-9 | switch focus to workspace (1-9) |
MODKEY + SHIFT + 1-9 | send focused window to workspace (1-9) |
MODKEY + j | focus stack +1 (switches focus between windows in the stack) |
MODKEY + k | focus stack -1 (switches focus between windows in the stack) |
MODKEY + SHIFT + j | move window downwards |
MODKEY + SHIFT + k | move window upwards |
MODKEY + SHIFT + l | move window to the right |
MODKEY + SHIFT + h | move focused window to the left |
MODKEY + SHIFT + CTRL + j | expands size of window (horizontally) |
MODKEY + SHIFT + CTRL + k | shrinks size of window (horizontally) |
MODKEY + SHIFT + CTRL + h | expands size of window (vertically) |
MODKEY + SHIFT + CTRL + l | shrinks size of window (vertically) |
MODKEY + o | toggle my general scratchpad |
MODKEY + m | toggle my music scratchpad |
MODKEY + q | toggle my calc scratchpad |
If you do not use a login manager (such as lightdm) then you can add the following line to your .xinitrc to start dwm using startx:
exec dwm
If you use a login manager (like lightdm), make sure that you have a file called dwm.desktop in your usr/share/xsessions directory. It should look something like this:
[Desktop Entry]
Encoding=UTF-8
Name=Dwm
Comment=Dynamic window manager
Exec=dwm
Icon=dwm
Type=XSession
If you downloaded the source and built my dwm build yourself, then the source in the directory that you downloaded.
The configuration of dwm is done by editng the config.h
and (re)compiling the source code.
sudo make install