11 lines
264 B
Bash
11 lines
264 B
Bash
# 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
|