changeset 132:59e997ca04a6

added a note how to achieve status info in the bar
author arg@10ksloc.org
date Fri, 21 Jul 2006 09:59:11 +0200 (2006-07-21)
parents 65efe27cbf3d
children 467ad2d3a6fa
files README
diffstat 1 files changed, 17 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/README	Fri Jul 21 09:39:44 2006 +0200
+++ b/README	Fri Jul 21 09:59:11 2006 +0200
@@ -1,6 +1,5 @@
 dwm - dynamic window manager
 ----------------------------
-
 dwm is an extremly fast, small, and dynamic X11 window manager.
 
 
@@ -34,6 +33,23 @@
 This will start dwm on display :1 of the host foo.bar.
 
 
+Displaying status info
+----------------------
+In order to display status info in the bar, you can do following
+in .xinitrc:
+
+    $HOME/.dwm/status | dwm
+
+Assumed $HOME/.dwm/status is an executable script like:
+
+    #!/bin/sh
+    while true
+    do
+        echo `date` `uptime | sed 's/.*://; s/,//g'`
+        sleep 5
+    done
+
+
 Configuration
 -------------
 The configuration of dwm is done by customizing source code,