sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit 86bf29b6a33e931055cf64cf0c3cdcae4cecadab
parent 9ae8ee32e280e3afb287b041aeeb5f25c9eaf28a
Author: levi0x0 <levi0x0x@gmail.com>
Date:   Fri,  7 Nov 2014 15:53:10 +0200

minor bug fixes.

Diffstat:
Mdwm.suckless.org/dwmstatus/bar_monitor.c | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/dwm.suckless.org/dwmstatus/bar_monitor.c b/dwm.suckless.org/dwmstatus/bar_monitor.c @@ -74,8 +74,6 @@ #define LAPTOP 0 #if LAPTOP - #define SHOW_BATTERY 0 - #define SHOW_TEMP 0 #define TEMP_FILE "/sys/class/hwmon/hwmon0/temp1_input" /* BAT1 or BAT0 change if needed*/ @@ -126,8 +124,8 @@ int main(int argc, char **argv) { #endif #if LAPTOP - sprintf(status, "( %d%%m %s ) (%d) %s", ReadBatteryCap, - ReadBatteryStat, Newmail, TimeADate()); + sprintf(status, "(%dc) ( %d%%m %s ) (%d) %s", ReadTemp(), ReadBatteryCap(), + ReadBatteryStat(), Newmail, TimeADate()); XSetRoot(status); #else sprintf(status, "(%d) %s", Newmail, TimeADate());