[profile] start dwl on login if it exists

This commit is contained in:
odrling 2023-10-12 04:10:23 +02:00
parent 78fdabda21
commit d29284deb4
No known key found for this signature in database
GPG key ID: A0145F975F9F8B75

View file

@ -29,6 +29,10 @@ if test -z "${XDG_RUNTIME_DIR}"; then
fi
ulimit -c unlimited
if command -v startx > /dev/null && [ "$(tty)" = '/dev/tty1' ]; then
pgrep xinit || exec startx
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"
elif command -v startx > /dev/null; then
pgrep xinit || exec startx
fi
fi