From 1a51f2f555b182673e3f9b3e38fb2ab0e57dd6c2 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Thu, 23 Jan 2025 09:26:51 -0500 Subject: reconfigure --- nix/programs/zsh/zprofile | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 nix/programs/zsh/zprofile (limited to 'nix/programs/zsh/zprofile') diff --git a/nix/programs/zsh/zprofile b/nix/programs/zsh/zprofile new file mode 100644 index 0000000..4815b36 --- /dev/null +++ b/nix/programs/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