[wiki] [sites] minor bug fixes. || levi0x0

From: <git_AT_suckless.org>
Date: Fri, 07 Nov 2014 14:54:04 +0100

commit 86bf29b6a33e931055cf64cf0c3cdcae4cecadab
Author: levi0x0 <levi0x0x_AT_gmail.com>
Date: Fri Nov 7 15:53:10 2014 +0200

    minor bug fixes.

diff --git a/dwm.suckless.org/dwmstatus/bar_monitor.c b/dwm.suckless.org/dwmstatus/bar_monitor.c
index 9bfb6a7..aa3c442 100644
--- a/dwm.suckless.org/dwmstatus/bar_monitor.c
+++ b/dwm.suckless.org/dwmstatus/bar_monitor.c
_AT_@ -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*/
_AT_@ -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());
Received on Fri Nov 07 2014 - 14:54:04 CET

This archive was generated by hypermail 2.3.0 : Thu Jun 18 2015 - 17:39:46 CEST