fix tty check

This commit is contained in:
frosty 2024-05-28 15:25:33 -04:00
parent 710b820ed2
commit e67910c4f4

View file

@ -33,4 +33,4 @@ export _JAVA_OPTIONS="-Djava.util.prefs.userRoot=$XDG_CONFIG_HOME/java"
[ ! -f "$XDG_CONFIG_HOME/shell/shortcutrc" ] && [ -x "$(command -v shortcuts)" ] && shortcuts
# Automatically start X session inside tty1
[ -z "$DISPLAY" ] && [ "$XDG_VTNR" -eq 1 ] && exec startx
[ "$(tty)" = "/dev/tty1" ] && ! pidof -s Xorg >/dev/null 2>&1 && exec startx