oh
This commit is contained in:
parent
99e7ace4a8
commit
42dfbda956
2 changed files with 2 additions and 3 deletions
|
@ -29,7 +29,6 @@ static const char *const autostart[] = {
|
||||||
"picom", NULL,
|
"picom", NULL,
|
||||||
"keepassxc", NULL,
|
"keepassxc", NULL,
|
||||||
"nm-applet", NULL,
|
"nm-applet", NULL,
|
||||||
"blueman-applet", NULL,
|
|
||||||
NULL /* terminate */
|
NULL /* terminate */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -3,8 +3,8 @@
|
||||||
blue=#0000ff
|
blue=#0000ff
|
||||||
|
|
||||||
battery() {
|
battery() {
|
||||||
get_capacity="$(cat /sys/class/power_supply/BAT*/capacity)"
|
get_capacity="$(cat /sys/class/power_supply/BAT1/capacity)"
|
||||||
get_status="$(cat /sys/class/power_supply/BAT*/status)"
|
get_status="$(cat /sys/class/power_supply/BAT1/status)"
|
||||||
case "$get_status" in
|
case "$get_status" in
|
||||||
Charging) printf "^c$blue^ $get_capacity" ;;
|
Charging) printf "^c$blue^ $get_capacity" ;;
|
||||||
Discharging) printf "^c$white^ ^b$blue $get_capacity"
|
Discharging) printf "^c$white^ ^b$blue $get_capacity"
|
||||||
|
|
Loading…
Reference in a new issue