diff options
author | Vikas Kushwaha <dev@vikas.rocks> | 2025-02-22 10:11:38 +0530 |
---|---|---|
committer | Vikas Kushwaha <dev@vikas.rocks> | 2025-02-22 10:11:38 +0530 |
commit | 3b887240d1d9189be7f4adf75f3e71277b7ca833 (patch) | |
tree | 358fd67ad202c410e1730ed811647251543c553a /.config/zsh/zprofile | |
parent | 4bba9a51b63863317983faba3988c8a14e722c11 (diff) |
after fixing some boot problems
Diffstat (limited to '.config/zsh/zprofile')
-rw-r--r-- | .config/zsh/zprofile | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |