From 3b887240d1d9189be7f4adf75f3e71277b7ca833 Mon Sep 17 00:00:00 2001 From: Vikas Kushwaha Date: Sat, 22 Feb 2025 10:11:38 +0530 Subject: after fixing some boot problems --- .config/zsh/zprofile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.config/zsh/zprofile') diff --git a/.config/zsh/zprofile b/.config/zsh/zprofile index 46c5217..f41c6a2 100644 --- a/.config/zsh/zprofile +++ b/.config/zsh/zprofile @@ -9,7 +9,7 @@ on_ac_power="$(cat /sys/class/power_supply/ACAD/online)" case "$TTY" in /dev/tty1) - [ "$on_ac_power" = 1 ] && { + command -V optimus-manager >/dev/null && [ "$on_ac_power" = 1 ] { echo "Waiting for nvidia card to load up..." until [ -e /dev/dri/card0 ]; do; sleep 0.1; done } -- cgit v1.2.3