summaryrefslogtreecommitdiff
path: root/.config/zsh/zprofile
diff options
context:
space:
mode:
authorVikas Kushwaha <dev@vikas.rocks>2025-04-29 09:25:30 +0530
committerVikas Kushwaha <dev@vikas.rocks>2025-04-29 09:28:54 +0530
commit7df7120b1ae66ed0e9a7c6ed9b224ba44ea1d920 (patch)
tree1a9f78045786dbbad346204d3957194af04988e4 /.config/zsh/zprofile
parenta2860b969e97e47a2b1c0ddb7161adb5b35c06f3 (diff)
Updates
Diffstat (limited to '.config/zsh/zprofile')
-rw-r--r--.config/zsh/zprofile4
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 }
;;