From 262fd581a79f61ee99b018938c480cf318ba6bd6 Mon Sep 17 00:00:00 2001 From: clsr Date: Wed, 26 Apr 2017 10:41:48 +0200 Subject: Deduplicate file reading code and add battery charging indicator --- config.def.mk | 3 +++ 1 file changed, 3 insertions(+) (limited to 'config.def.mk') diff --git a/config.def.mk b/config.def.mk index a01d057..1860aaf 100644 --- a/config.def.mk +++ b/config.def.mk @@ -6,6 +6,9 @@ CFLAGS+=-DBATTERY # set this to the correct path for your current system CFLAGS+=-DENERGY_FULL=\"/sys/class/power_supply/BAT0/energy_full\" CFLAGS+=-DENERGY_NOW=\"/sys/class/power_supply/BAT0/energy_now\" +CFLAGS+=-DSTATUS=\"/sys/class/power_supply/BAT0/status\" +# the string to match when the battery is charging; comment out to disable charging detection +CFLAGS+=-DCHARGING=\"Charging\\n\" # possible alternative on some systems #CFLAGS+=-DENERGY_FULL=\"/sys/class/power_supply/BAT0/charge_full\" -- cgit