Add startdwm script

This script is to restart dwm without killing X.
This commit is contained in:
samedamci 2020-05-26 20:10:14 +02:00
parent b4ea414d2e
commit 2893e617e2
No known key found for this signature in database
GPG Key ID: FCB4A9A20D00E894
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 & dunst &
syncthing -no-browser & syncthing -no-browser &
telegram-desktop & telegram-desktop &
exec dwm exec ~/.local/bin/scripts/startdwm