Ver Fonte

clean bar script

siduck76 há 3 anos atrás
pai
commit
1aaa76b31d
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      .dwm/bars/gruvchad.sh

+ 2 - 2
.dwm/bars/gruvchad.sh

@@ -27,8 +27,8 @@ pkg_updates() {
 
 # battery
 batt() {
-  printf "^c#6f8faf^  "
-  printf "^c#6f8faf^ $(acpi | sed "s/,//g" | awk '{if ($3 == "Discharging"){print $4; exit} else {print $4""}}' | tr -d "\n")"
+  get_capacity="$(cat /sys/class/power_supply/BAT1/capacity)"
+  printf "^c#6f8faf^   $get_capacity"
 }
 
 brightness() {