This commit is contained in:
Sakooooo 2023-09-12 10:06:53 +04:00
parent 99e7ace4a8
commit 42dfbda956
Signed by: sako
GPG key ID: 3FD715D87D7725E0
2 changed files with 2 additions and 3 deletions

View file

@ -29,7 +29,6 @@ static const char *const autostart[] = {
"picom", NULL,
"keepassxc", NULL,
"nm-applet", NULL,
"blueman-applet", NULL,
NULL /* terminate */
};

View file

@ -3,8 +3,8 @@
blue=#0000ff
battery() {
get_capacity="$(cat /sys/class/power_supply/BAT*/capacity)"
get_status="$(cat /sys/class/power_supply/BAT*/status)"
get_capacity="$(cat /sys/class/power_supply/BAT1/capacity)"
get_status="$(cat /sys/class/power_supply/BAT1/status)"
case "$get_status" in
Charging) printf "^c$blue^ 󰂄 $get_capacity" ;;
Discharging) printf "^c$white^ ^b$blue 󰁹 $get_capacity"