aboutsummaryrefslogtreecommitdiff
path: root/.profile
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2023-11-19 14:40:21 +0200
committersrdusr <trevorgray@srdusr.com>2023-11-19 14:40:21 +0200
commit7f2ee06e259abb751740f285432c8c345953ce98 (patch)
treee1cea1d5d4c773e80320001cfa2cb2f4be35b63d /.profile
parentf4fcdf7776eb56d14be989ac28265c9383e6c1f4 (diff)
downloaddotfiles-7f2ee06e259abb751740f285432c8c345953ce98.tar.gz
dotfiles-7f2ee06e259abb751740f285432c8c345953ce98.zip
Conditionally set display if x11
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