#!/bin/sh # Start dwm in a loop for restarting without killing X. while true; do # Log stderror to a file dwm 2> ~/.cache/dwm.log # No error logging #dwm >/dev/null 2>&1 done