#!/bin/sh

# A simple script to start dwm in a while loop which
# allows dwm to be killed without closing programs.
# Usage:    killall dwm         <-- restarts dwm
#           killall startdwm    <-- kills session

# generate statusbar and pass it to dwm loop (legacy)
#conky | while true; do dwm > /dev/null; done;

conky-cli | while read line; do
    xsetroot -name "$line"; 
# log stderror to a file 
done | while true; do dwm 2> ~/.dwm.err; done;
# no error logging
#done | while true; do dwm > /dev/null; done;


