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:
parent
a646ccf48f
commit
7aa9304734
2 changed files with 11 additions and 1 deletions
|
@ -17,4 +17,4 @@ logrotate \
|
|||
${XDG_CONFIG_HOME}/logrotate/logrotate.conf \
|
||||
&
|
||||
|
||||
exec dwm
|
||||
exec startdwm
|
||||
|
|
10
scripts/startdwm
Normal file
10
scripts/startdwm
Normal 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
|
Loading…
Reference in a new issue