[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Antiright-devel] antiright/src/wmarmon wmarmon.c
From: |
Jeffrey Bedard |
Subject: |
[Antiright-devel] antiright/src/wmarmon wmarmon.c |
Date: |
Fri, 01 Jul 2005 21:27:00 -0400 |
CVSROOT: /cvsroot/antiright
Module name: antiright
Branch:
Changes by: Jeffrey Bedard <address@hidden> 05/07/02 01:27:00
Modified files:
src/wmarmon : wmarmon.c
Log message:
Added coloration to display.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/antiright/antiright/src/wmarmon/wmarmon.c.diff?tr1=1.2&tr2=1.3&r1=text&r2=text
Patches:
Index: antiright/src/wmarmon/wmarmon.c
diff -u antiright/src/wmarmon/wmarmon.c:1.2 antiright/src/wmarmon/wmarmon.c:1.3
--- antiright/src/wmarmon/wmarmon.c:1.2 Sat Jul 2 00:56:58 2005
+++ antiright/src/wmarmon/wmarmon.c Sat Jul 2 01:27:00 2005
@@ -112,14 +112,17 @@
XDrawRectangle(display, iconwin, gc, 0, 0, 64, 64);
XFillRectangle(display, iconwin, gc, 4, 4, 56, 56);
arshell_set_font("5x7");
- arshell_set_foreground(200, 250, 200);
+ arshell_set_foreground(250, 250, 250);
XDrawString(display, iconwin, gc, 6, 16, hostname, strlen(hostname));
asprintf(&string, "%sM fr/sw", swap);
+ arshell_set_foreground(250, 200, 200);
XDrawString(display, iconwin, gc, 6, 24, string, strlen(string));
free(string);
asprintf(&string, "%s users", users);
+ arshell_set_foreground(200, 200, 250);
XDrawString(display, iconwin, gc, 6, 32, string, strlen(string));
free(string);
+ arshell_set_foreground(200, 250, 200);
asprintf(&string, "%d%% 1m", (int)(load[0]*100));
XDrawString(display, iconwin, gc, 6, 40, string, strlen(string));
free(string);