aboutsummaryrefslogtreecommitdiff
path: root/.profile
diff options
context:
space:
mode:
Diffstat (limited to '.profile')
-rw-r--r--.profile5
1 files changed, 3 insertions, 2 deletions
diff --git a/.profile b/.profile
index 52c4c8d..4aea4fd 100644
--- a/.profile
+++ b/.profile
@@ -2,5 +2,6 @@
[[ -f ~/.config/zsh/.zshenv ]] && source ~/.config/zsh/.zshenv
-#export DISPLAY=:0
-export DISPLAY=:$(echo $XDG_VTNR)
+if [ "$XDG_SESSION_TYPE" = "x11" ]; then
+ export DISPLAY=:0
+fi