Add another battery option

This commit is contained in:
Alexander Hosking 2017-03-25 02:21:26 -04:00
parent a8cbeb3250
commit 059bfc6ccc

View File

@ -18,6 +18,7 @@ order += "run_watch VPN"
order += "wireless _first_"
order += "ethernet _first_"
order += "battery 0"
order += "battery 1"
order += "load"
order += "tztime local"
@ -35,13 +36,19 @@ ethernet _first_ {
}
battery 0 {
status_chr = "⚡"
#format = "%status %percentage %remaining"
format = "%status %percentage"
path = "/sys/class/power_supply/BAT1/uevent"
status_chr = "CHR ⚡"
format = "%status %percentage %remaining"
path = "/sys/class/power_supply/BAT0/uevent"
#format = "upower -i /org/freedesktop/UPower/devices/battery_BAT1 | grep -E 'state|to\ full|percentage'"
}
battery 1 {
status_chr = "CHR ⚡"
format = "%status %percentage %remaining"
path = "/sys/class/power_supply/BAT1/uevent"
format_down = ""
}
run_watch DHCP {
pidfile = "/var/run/dhclient*.pid"
}