dotfiles-nix/files/config/zsh/zprofile
2025-01-21 02:45:29 +00:00

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