aboutsummaryrefslogtreecommitdiffstats
path: root/lcd4linux.c
diff options
context:
space:
mode:
authorltoetsch <ltoetsch@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2001-03-08 15:25:38 +0000
committerltoetsch <ltoetsch@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2001-03-08 15:25:38 +0000
commit824e3605cf8644295dc837a17f329c2e2bd619a3 (patch)
tree02aff59dab901063436b9f22074566765564ec84 /lcd4linux.c
parentaf1aa94e53eea7a721806610ffdad0affe8d2d0f (diff)
downloadlcd4linux-824e3605cf8644295dc837a17f329c2e2bd619a3.tar.gz
[lcd4linux @ 2001-03-08 15:25:38 by ltoetsch]
improved exec git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@103 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to '')
-rw-r--r--lcd4linux.c9
-rw-r--r--lcd4linux.conf.sample12
2 files changed, 18 insertions, 3 deletions
diff --git a/lcd4linux.c b/lcd4linux.c
index 3bc0144..c60a04e 100644
--- a/lcd4linux.c
+++ b/lcd4linux.c
@@ -1,4 +1,4 @@
-/* $Id: lcd4linux.c,v 1.29 2001/02/14 07:40:16 reinelt Exp $
+/* $Id: lcd4linux.c,v 1.30 2001/03/08 15:25:38 ltoetsch Exp $
*
* LCD4Linux
*
@@ -20,6 +20,9 @@
*
*
* $Log: lcd4linux.c,v $
+ * Revision 1.30 2001/03/08 15:25:38 ltoetsch
+ * improved exec
+ *
* Revision 1.29 2001/02/14 07:40:16 reinelt
*
* first (incomplete) GPO implementation
@@ -182,7 +185,7 @@ char *release="LCD4Linux " VERSION " (c) 2000 Michael Reinelt <reinelt@eunet.at>
char **my_argv;
char *output=NULL;
int got_signal=0;
-int debugging=1;
+int debugging=0;
int foreground=0;
int tick, tack;
@@ -343,7 +346,7 @@ int main (int argc, char *argv[])
}
if (foreground) {
- debug ("LCD4Linux " VERSION);
+ info ("Version " VERSION " starting");
} else {
info ("Version " VERSION " starting");
if (my_argv[0]==NULL || my_argv[0][0]!='/') {
diff --git a/lcd4linux.conf.sample b/lcd4linux.conf.sample
index 50de336..db91281 100644
--- a/lcd4linux.conf.sample
+++ b/lcd4linux.conf.sample
@@ -62,6 +62,18 @@ Row2 "%p CPU %r MB RAM"
Row3 "Busy %cb%% $r10cs+cb"
Row4 "Load%l1%L$r10l1"
+# e(x)ecute command in %x*
+# Row5 %x1
+# Row6 %x2
+# x1 tail -1 /var/log/messages
+# x2 echo $X1 | cut -b25-
+# Note: PATH=/usr/local/bin:/usr/bin:/bin
+# Note: $X1 .. $X8 is the text of lines x1 .. x8
+#
+# Tick_x1 10 # every 10 ticks
+# Delay_x1 2 # every 2 seconds
+# Scale_x1 50 # scale for bars (default 100), value SHOULD be numeric ;-)
+
#Row1 "Load%l1%L$r10cs+cb"
#Row2 "Disk%dm $R10dr+dw"
#Row3 "Net %nm $R10nr+nw"