summaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
authorTimmy Keller <tjk@tjkeller.xyz>2021-09-03 19:15:47 -0500
committerTimmy Keller <tjk@tjkeller.xyz>2021-09-03 19:15:47 -0500
commit7ff30175509487dc499424f47c914d37050f3854 (patch)
tree488f15110eeadfdebe04a891bb52f8c276590ca4 /zsh
parentf504ca9746f038b9eb2524e7a79d642b69d9fbc1 (diff)
parent0ca5965a24eb2c32987f819c6d16f6bf05f98c31 (diff)
downloaddotconfig-7ff30175509487dc499424f47c914d37050f3854.tar.xz
dotconfig-7ff30175509487dc499424f47c914d37050f3854.zip
Merge branch 'master' of tjkeller.xyz:/var/www/git/dotconfig
Diffstat (limited to 'zsh')
-rw-r--r--zsh/zprofile.base2
1 files changed, 1 insertions, 1 deletions
diff --git a/zsh/zprofile.base b/zsh/zprofile.base
index 049c263..203260b 100644
--- a/zsh/zprofile.base
+++ b/zsh/zprofile.base
@@ -36,4 +36,4 @@ export LESSHISTFILE="-"
export QT_QPA_PLATFORMTHEME="qt5ct"
# Autostart X after login
-if [[ -z $DISPLAY ]] && [[ "$USER" != "root" ]] && ( [[ $(tty) = /dev/tty1 ]] || [[ $(tty) = /dev/ttyC0 ]] ); then startx $XDG_CONFIG_HOME/x11/xinitrc; fi
+if [[ -z $DISPLAY ]] && [[ "$(id -u)" != 0 ]] && ( [[ $(tty) = /dev/tty1 ]] || [[ $(tty) = /dev/ttyC0 ]] ); then startx $XDG_CONFIG_HOME/x11/xinitrc; fi