aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com>2021-04-28 17:07:19 +0530
committerVidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com>2021-04-28 17:07:19 +0530
commit0e39935aed57625eb7d762515afba757ded1fef9 (patch)
tree88616dc9cd07121dc77cd3b45d70e5c0a09aca85
parent6e19a7323d39cfd9bee83cdc1cd37986c2723c8f (diff)
.zprofile is now actually error free. everything starts up correctly, I've tested it
-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