Cleaner & bug free startx

This commit is contained in:
Salman Abedin 2020-06-06 10:55:58 +06:00
parent 7572627e85
commit aa0f133167

View File

@ -120,7 +120,7 @@ ex=🎯:\
if pacman -Qs libxft-bgra >/dev/null 2>&1; then
# Start graphical server on tty1 if not already running.
[ "$(tty)" = "/dev/tty1" ] && ! pidof Xorg >/dev/null 2>&1 && exec startx
[ "$(fgconsole 2> /dev/null)" = 1 ] && exec startx
else
echo "\033[31mIMPORTANT\033[0m: Note that \033[32m\`libxft-bgra\`\033[0m must be installed for this build of dwm.
Please run: