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,
|
||||
"keepassxc", NULL,
|
||||
"nm-applet", NULL,
|
||||
"blueman-applet", NULL,
|
||||
NULL /* terminate */
|
||||
};
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue