solorice/.config/zsh/.zprofile-X11
2023-02-22 22:07:40 +02:00

5 lines
215 B
Bash

#!/bin/zsh
# 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"