diff --git a/.local/bin/scripts/startdwm b/.local/bin/scripts/startdwm new file mode 100755 index 0000000..c9c66e9 --- /dev/null +++ b/.local/bin/scripts/startdwm @@ -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 diff --git a/.xinitrc b/.xinitrc index b5fe748..3379d38 100644 --- a/.xinitrc +++ b/.xinitrc @@ -15,4 +15,4 @@ mpd & dunst & syncthing -no-browser & telegram-desktop & -exec dwm +exec ~/.local/bin/scripts/startdwm