From 328c741b1aac74020412e99e0dca7c728dbc92fa Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Mon, 23 Jun 2025 22:33:44 -0400 Subject: refactor --- home/zsh/zprofile | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 home/zsh/zprofile (limited to 'home/zsh/zprofile') diff --git a/home/zsh/zprofile b/home/zsh/zprofile new file mode 100644 index 0000000..4815b36 --- /dev/null +++ b/home/zsh/zprofile @@ -0,0 +1,11 @@ +# 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 -- cgit v1.2.3-freya