xorg: restart dwm on changes otherwise logout

master
tiyn 7 months ago
parent 248f13df8f
commit 82b789920b

@ -9,6 +9,17 @@ xrandr --auto
setbg
while true; do
dwm || exit
csum=""
new_csum=$(sha1sum $(which dwm))
while true
do
if [ "$csum" != "$new_csum" ]
then
csum=$new_csum
dwm
else
exit 0
fi
new_csum=$(sha1sum $(which dwm))
sleep 0.5
done

Loading…
Cancel
Save