dwmfifo

Description

This patch adds support for using a command/control FIFO for dwm. I've added commands that map 1-1 with the existing keybind actions. You can use this patch to script dwm. As an example the following sequence of commands starts 2 terminals on each of the 2 monitors.

echo term > /tmp/dwm.fifo
sleep 0.5
echo term > /tmp/dwm.fifo
sleep 0.5
echo focusmon+ > /tmp/dwm.fifo
sleep 0.5
echo term > /tmp/dwm.fifo
sleep 0.5
echo term > /tmp/dwm.fifo

The sleep in between is currently needed to avoid buffering up more than a single command. You may experiment with the actual sleep value. Sleeps are no longer needed with the 20230713 version.

Similarly you can modify your config.h and add more commands that you may want to execute (like tabbed-surf or similar).

Download

Author