summaryrefslogtreecommitdiff
path: root/programs/zsh/zprofile
diff options
context:
space:
mode:
Diffstat (limited to 'programs/zsh/zprofile')
-rw-r--r--programs/zsh/zprofile11
1 files changed, 11 insertions, 0 deletions
diff --git a/programs/zsh/zprofile b/programs/zsh/zprofile
new file mode 100644
index 0000000..4815b36
--- /dev/null
+++ b/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