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