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