Swithced from sx to startx

This commit is contained in:
Kristofers Solo
2023-02-22 22:07:40 +02:00
parent 505a4dcf9e
commit 93396b75a1
5 changed files with 55 additions and 18 deletions

View File

@@ -1,5 +1,4 @@
#!/bin/zsh
if [ "$(tty)" = "/dev/tty1" ]; then
pgrep awesome || sx
fi
# Start graphical server on user's current tty if not already running.
[ "$(tty)" = "/dev/tty1" ] && ! pidof -s Xorg >/dev/null 2>&1 && exec dbus-launch --sh-syntax --exit-with-session startx "$XINITRC"