diff options
author | clsr <clsr@clsr.net> | 2019-12-28 21:50:06 +0100 |
---|---|---|
committer | clsr <clsr@clsr.net> | 2019-12-28 21:50:06 +0100 |
commit | c62e1681f7635254561d01ccaf995d0a16232b58 (patch) | |
tree | 006d18405af689babf9af8ca3ef810deef79da4f /config.mk | |
download | dwmclock-pkgbuild-c62e1681f7635254561d01ccaf995d0a16232b58.tar.gz dwmclock-pkgbuild-c62e1681f7635254561d01ccaf995d0a16232b58.zip |
Initial commitv1.3.2
Diffstat (limited to 'config.mk')
-rw-r--r-- | config.mk | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/config.mk b/config.mk new file mode 100644 index 0000000..a9dfe19 --- /dev/null +++ b/config.mk @@ -0,0 +1,27 @@ +# dwmclock settings + +# enable battery charge display +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\" +#CFLAGS += -DENERGY_NOW=\"/sys/class/power_supply/BAT0/charge_now\" +#CFLAGS += -DSTATUS=\"/sys/class/power_supply/ADP1/online\" +#CFLAGS += -DCHARGING=\"1\\n\" + +# every how many seconds to refresh the battery charge display +CFLAGS += -DBAT_REFRESH_SECONDS=10 + +# this is here for legacy reasons, ignore it +CFLAGS += -DMUL=1 + +# sleep to the start of the next second instead of for 1s +CFLAGS += -DEXACT_SLEEP |