diff options
| author | srdusr <trevorgray@srdusr.com> | 2023-11-19 14:40:21 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2023-11-19 14:40:21 +0200 |
| commit | 7f2ee06e259abb751740f285432c8c345953ce98 (patch) | |
| tree | e1cea1d5d4c773e80320001cfa2cb2f4be35b63d | |
| parent | f4fcdf7776eb56d14be989ac28265c9383e6c1f4 (diff) | |
| download | dotfiles-7f2ee06e259abb751740f285432c8c345953ce98.tar.gz dotfiles-7f2ee06e259abb751740f285432c8c345953ce98.zip | |
Conditionally set display if x11
| -rw-r--r-- | .profile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |
