feat: add custom startdwm script to allow restarts

Modified script from the Archwiki which runs DWM in a loop so that we
can restart the window manager we make changes to the binary.
This commit is contained in:
Dan Anglin 2022-05-22 12:45:44 +01:00
parent a646ccf48f
commit 7aa9304734
Signed by: dananglin
GPG key ID: 0C1D44CFBEE68638
2 changed files with 11 additions and 1 deletions

View file

@ -17,4 +17,4 @@ logrotate \
${XDG_CONFIG_HOME}/logrotate/logrotate.conf \
&
exec dwm
exec startdwm

10
scripts/startdwm Normal file
View file

@ -0,0 +1,10 @@
#!/usr/bin/env bash
set -euo pipefail
logfile="${LOG_HOME}/dwm.log"
while true; do
# Log stderror to a file
dwm 2> "$logfile"
done