aboutsummaryrefslogtreecommitdiffstats
path: root/config.def.mk
diff options
context:
space:
mode:
authorclsr <clsr@clsr.net>2017-04-26 10:41:48 +0200
committerclsr <clsr@clsr.net>2017-04-26 10:41:48 +0200
commit262fd581a79f61ee99b018938c480cf318ba6bd6 (patch)
tree7d3c2250563f626f616746516560dcc6c5151880 /config.def.mk
parente7a5b19c0ba06e12b0137a7ce5e65a15135d9977 (diff)
downloaddwmclock-262fd581a79f61ee99b018938c480cf318ba6bd6.tar.gz
dwmclock-262fd581a79f61ee99b018938c480cf318ba6bd6.zip
Deduplicate file reading code and add battery charging indicatorv1.1.0
Diffstat (limited to 'config.def.mk')
-rw-r--r--config.def.mk3
1 files changed, 3 insertions, 0 deletions
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\"