diff options
author | Vikas Kushwaha <dev@vikas.rocks> | 2025-04-29 09:25:30 +0530 |
---|---|---|
committer | Vikas Kushwaha <dev@vikas.rocks> | 2025-04-29 09:28:54 +0530 |
commit | 7df7120b1ae66ed0e9a7c6ed9b224ba44ea1d920 (patch) | |
tree | 1a9f78045786dbbad346204d3957194af04988e4 /.config/zsh/zprofile | |
parent | a2860b969e97e47a2b1c0ddb7161adb5b35c06f3 (diff) |
Updates
Diffstat (limited to '.config/zsh/zprofile')
-rw-r--r-- | .config/zsh/zprofile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/.config/zsh/zprofile b/.config/zsh/zprofile index f41c6a2..16b64c6 100644 --- a/.config/zsh/zprofile +++ b/.config/zsh/zprofile @@ -9,9 +9,9 @@ on_ac_power="$(cat /sys/class/power_supply/ACAD/online)" case "$TTY" in /dev/tty1) - command -V optimus-manager >/dev/null && [ "$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 + until [ -e /dev/dri/card1 ]; do; sleep 0.1; done } command -V startx >/dev/null && { pgrep startx || startx } ;; |