summaryrefslogtreecommitdiff
path: root/nix/programs/zsh/zprofile
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-01-23 09:26:51 -0500
committerFreya Murphy <freya@freyacat.org>2025-01-23 09:26:51 -0500
commit1a51f2f555b182673e3f9b3e38fb2ab0e57dd6c2 (patch)
treeeecdad132615a4469c22ee6d4ccd1df087b6159d /nix/programs/zsh/zprofile
parentuse base16 in neovim and starship (diff)
downloaddotfiles-nix-1a51f2f555b182673e3f9b3e38fb2ab0e57dd6c2.tar.gz
dotfiles-nix-1a51f2f555b182673e3f9b3e38fb2ab0e57dd6c2.tar.bz2
dotfiles-nix-1a51f2f555b182673e3f9b3e38fb2ab0e57dd6c2.zip
reconfigure
Diffstat (limited to 'nix/programs/zsh/zprofile')
-rw-r--r--nix/programs/zsh/zprofile11
1 files changed, 11 insertions, 0 deletions
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