[odrbin] wlstart: properly clean old s6

This commit is contained in:
odrling 2023-10-16 00:38:12 +02:00
parent 9fcfa3259b
commit 72ef309682
No known key found for this signature in database
GPG key ID: A0145F975F9F8B75
2 changed files with 4 additions and 3 deletions

View file

@ -1,8 +1,10 @@
#!/bin/sh
s6-svscan ~/.s6 <&- &
s6-svscanctl -t ~/.s6
s6-svwait -d ~/.s6/*
s6-svscan ~/.s6 &
trap "s6-svscanctl -t ~/.s6" int quit
trap "s6-svscanctl -t ~/.s6" INT QUIT EXIT
mkfifo /tmp/dwl_status
cat /dev/stdin > /tmp/dwl_status

View file

@ -35,7 +35,6 @@ if [ "$(tty)" = '/dev/tty1' ]; then
if command -v dwl > /dev/null; then
export XDG_CURRENT_DESKTOP=dwl
pgrep dwl || exec dbus-launch --exit-with-session dwl -s "wlstart"
s6-svscanctl -t ~/.s6
elif command -v startx > /dev/null; then
pgrep xinit || exec startx
fi