From 2d1bbf0d35f096803a96afbc8ae89a057e646d9f Mon Sep 17 00:00:00 2001 From: Aaron Marcher Date: Tue, 13 Sep 2016 20:54:45 +0200 Subject: simplified battery_perc() a lot and removed useless options from config.def.h --- config.def.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index b105869..8cf8e56 100644 --- a/config.def.h +++ b/config.def.h @@ -3,11 +3,6 @@ /* alsa sound */ #define ALSA_CHANNEL "Master" -/* battery */ -#define BATTERY_PATH "/sys/class/power_supply/" -#define BATTERY_NOW "energy_now" -#define BATTERY_FULL "energy_full_design" - /* how often to update the statusbar (min value == 1) */ #define UPDATE_INTERVAL 1 -- cgit v1.2.3 From 87c1377b08a9001a16943942e9d67458d8d19c33 Mon Sep 17 00:00:00 2001 From: Aaron Marcher Date: Tue, 13 Sep 2016 21:08:44 +0200 Subject: simplified vol_perc() (and with that config.def.h is super clean) --- config.def.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index 8cf8e56..a445aa7 100644 --- a/config.def.h +++ b/config.def.h @@ -1,8 +1,5 @@ /* See LICENSE file for copyright and license details. */ -/* alsa sound */ -#define ALSA_CHANNEL "Master" - /* how often to update the statusbar (min value == 1) */ #define UPDATE_INTERVAL 1 -- cgit v1.2.3 From f13104156f20c0e394297c56550ff8a948ff1c1a Mon Sep 17 00:00:00 2001 From: Aaron Marcher Date: Tue, 13 Sep 2016 22:03:36 +0200 Subject: battery_state() function added --- config.def.h | 1 + 1 file changed, 1 insertion(+) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index a445aa7..4f56eb0 100644 --- a/config.def.h +++ b/config.def.h @@ -8,6 +8,7 @@ /* statusbar - battery_perc (battery percentage) [argument: battery name] +- battery_state (battery charging state) [argument: battery name] - cpu_perc (cpu usage in percent) [argument: NULL] - datetime (date and time) [argument: format] - disk_free (disk usage in percent) [argument: mountpoint] -- cgit v1.2.3