config

OpenBSD system configuration
git clone git://jacobedwards.org/config
Log | Files | Refs | README

commit 6e92ff3de87185866f959d54ce962c6ddac0088c
parent 874b7329cf1298b11d53a03d875a03fc79e1e697
Author: Jacob R. Edwards <n/a>
Date:   Tue,  4 Oct 2022 14:46:02 -0700

Allow restarting the window manager in xsession script

Diffstat:
Mlocal/xenodm/config/xsession | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/local/xenodm/config/xsession b/local/xenodm/config/xsession @@ -19,4 +19,10 @@ slstatus & xset dpms 0 480 0 r rate 250 30 s 0 b 0 0 0 m 3 1 & xautolock -time 10 -locker away -notify 10 -notifier "herbe 'System Lock Imminent'" & -exec dwm >> /tmp/dwm.log 2>&1 +{ + while dwm > /tmp/dwm.log 2>&1 && + test "$(dmenu -p 'Stop session?' < /dev/null | sed -E 's/^[Yy].*/y/' )" != 'y' + do + : + done +}