Add startdwm script

This script is to restart dwm without killing X.
This commit is contained in:
Wiktor Zykubek 2020-05-26 20:10:14 +02:00
parent 50ebe825f1
commit cf743adcfc
2 changed files with 11 additions and 1 deletions

10
.local/bin/scripts/startdwm Executable file
View File

@ -0,0 +1,10 @@
#!/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

View File

@ -15,4 +15,4 @@ mpd &
dunst &
syncthing -no-browser &
telegram-desktop &
exec dwm
exec ~/.local/bin/scripts/startdwm