# dont attempt to launch a graphical
# env in tmux
if [ -n "$TMUX" ]; then
    return
fi

# only launch hyprland on tty 1
if [ -z "${WAYLAND_DISPLAY}" ] && [ "${XDG_VTNR}" -eq 1 ]; then
    export XDG_CURRENT_DESKTOP=Hyprland
    exec dbus-run-session Hyprland
fi