aboutsummaryrefslogtreecommitdiff
path: root/.zprofile
diff options
context:
space:
mode:
Diffstat (limited to '.zprofile')
-rw-r--r--.zprofile7
1 files changed, 3 insertions, 4 deletions
diff --git a/.zprofile b/.zprofile
index 9bf46ba..3418020 100644
--- a/.zprofile
+++ b/.zprofile
@@ -10,9 +10,8 @@ export WM="xmonad"
export QT_QPA_PLATFORMTHEME=gtk2
export ZDOTDIR="$HOME/.config/zsh"
-/zt/Programs/startpage-server &
-
-if [[ "$(tty)" = "dev/tty1" ]]; then
- startx
+if [[ -z $DISPLAY && $XDG_VTNR -eq 1 ]]; then
+ /zt/Programs/startpage-server &
+ startx
fi