make sure startx is only automatically called on TTY1 if std{in,out,err} are actually on a TTY -- not sddm or similar

This commit is contained in:
Tony Blyler 2024-10-29 08:47:12 -04:00
parent 3ad0129720
commit dd85f11f9d
No known key found for this signature in database

View file

@ -1,5 +1,8 @@
source "${HOME}/.zshrc.d/cbi.sh" 2>/dev/null if [ -e "${HOME}/.zshrc.d/cbi.sh" ]; then
if [ "$TTY" = '/dev/tty1' ]; then source "${HOME}/.zshrc.d/cbi.sh" 2>/dev/null
fi
if [ "$TTY" = '/dev/tty1' ] && [ -t 0 ] && [ -t 1 ] && [ -t 2 ]; then
startx startx
exit exit
fi fi