dwm is an extremely fast, small, and dynamic window manager for X.
This is (my work in progress) build for dwm taken under the MIT License from suckless website.
- autostart
- decorhints
- dwmc
- focusmaster
- restartsig
- scratchpad
- swallow
- vanitygaps
- xresources
- center
- cmdsignal
- noborderfloating fix
- fix borders (for border opacity)
In order to build dwm you need the Xlib header files.
For swallow :
xcb libxcb-xkb-dev x11-xkb-utils libx11-xcb-dev libxkbcommon-x11-dev libxcb-res0 libxcb-res0-dev
(Ubuntu 20.04)
Edit config.mk to match your local setup (dwm is installed into the /usr/local namespace by default).
Afterwards enter the following command to build and install dwm (if necessary as root):
make clean install
Makefile is edited to delete config.h
This build can change the color live by using the Xresources patch and an Image Color extractor like pywal.
A new function that reads live the X server resource database has been added. It was taken from the xrdb patch.
void
livereloadxrdb(const Arg *arg)
{
load_xresources();
int i;
for (i = 0; i < LENGTH(colors); i++)
scheme[i] = drw_scm_create(drw, colors[i], 3);
focus(NULL);
arrange(NULL);
}
By attaching the livereloadxrdb function to a keybinding or by adding it to the dwmc patch, the livereload function be called manualy or by a script to reload the colors added with the $ xrdb
.
For example with this build pywal is given a template to fill after extracting the colors and then xrdb is given the path to the output of the template in the ~/.cache/wal directory.
wal -qn -i "Path to image"
feh --bg-fill "Path to image"
xrdb -merge "$HOME/.cache/wal/dwm.Xresources"
dwmc reloadxrdb