add wlstart script to properly start dwl & services

This commit is contained in:
odrling 2023-10-15 05:43:18 +02:00
parent fa906377ab
commit 2f5a85b2ee
No known key found for this signature in database
GPG key ID: A0145F975F9F8B75
2 changed files with 9 additions and 1 deletions

8
.local/odrbin/wlstart Executable file
View file

@ -0,0 +1,8 @@
#!/bin/sh
s6-svscanctl -t ~/.s6
s6-svscan ~/.s6 &
mkfifo /tmp/dwl_status
cat /dev/stdin > /tmp/dwl_status

View file

@ -33,7 +33,7 @@ fi
ulimit -c unlimited
if [ "$(tty)" = '/dev/tty1' ]; then
if command -v dwl > /dev/null; then
pgrep dwl || exec dbus-launch --exit-with-session dwl -s "s6-svscan ~/.s6"
pgrep dwl || exec dbus-launch --exit-with-session dwl -s "wlstart"
elif command -v startx > /dev/null; then
pgrep xinit || exec startx
fi