[odrbin] startsession

This commit is contained in:
odrling 2023-10-16 02:00:01 +02:00
parent 3ade94b7cf
commit dcc61788b2
No known key found for this signature in database
GPG key ID: A0145F975F9F8B75
2 changed files with 9 additions and 9 deletions

8
.local/odrbin/startsession Executable file
View file

@ -0,0 +1,8 @@
#!/bin/sh
if command -v dwl > /dev/null; then
export XDG_CURRENT_DESKTOP=dwl
pgrep dwl || dbus-launch --exit-with-session dwl -s "wlstart"
exec s6-svscanctl -t ~/.s6
elif command -v startx > /dev/null; then
pgrep xinit || exec startx
fi

View file

@ -31,12 +31,4 @@ if test -z "${XDG_RUNTIME_DIR}"; then
fi
ulimit -c unlimited
if [ "$(tty)" = '/dev/tty1' ]; then
if command -v dwl > /dev/null; then
export XDG_CURRENT_DESKTOP=dwl
pgrep dwl || dbus-launch --exit-with-session dwl -s "wlstart"
exec s6-svscanctl -t ~/.s6
elif command -v startx > /dev/null; then
pgrep xinit || exec startx
fi
fi
[ "$(tty)" = '/dev/tty1' ] && exec startsession