dwm-meillo

annotate README @ 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
parents e8a23f20097e
children a4305fb0cfac
rev   line source
garbeam@37 1 dwm - dynamic window manager
garbeam@37 2 ----------------------------
garbeam@34 3 dwm is an extremly fast, small, and dynamic X11 window manager.
garbeam@17 4
garbeam@17 5
garbeam@0 6 Requirements
garbeam@0 7 ------------
garbeam@34 8 In order to build dwm you need the Xlib header files.
garbeam@0 9
garbeam@0 10
garbeam@0 11 Installation
garbeam@0 12 ------------
garbeam@34 13 Edit config.mk to match your local setup. dwm is installed into
garbeam@0 14 the /usr/local namespace by default.
garbeam@0 15
garbeam@34 16 Afterwards enter the following command to build and install dwm (if
garbeam@0 17 necessary as root):
garbeam@0 18
garbeam@0 19 make clean install
garbeam@0 20
garbeam@0 21
garbeam@34 22 Running dwm
garbeam@37 23 -----------
garbeam@34 24 Add the following line to your .xinitrc to start dwm using startx:
garbeam@0 25
garbeam@34 26 exec dwm
garbeam@0 27
garbeam@34 28 In order to connect dwm to a specific display, make sure that
garbeam@0 29 the DISPLAY environment variable is set correctly, e.g.:
garbeam@0 30
garbeam@34 31 DISPLAY=foo.bar:1 exec dwm
garbeam@0 32
garbeam@34 33 This will start dwm on display :1 of the host foo.bar.
garbeam@0 34
garbeam@0 35
arg@132 36 Displaying status info
arg@132 37 ----------------------
arg@132 38 In order to display status info in the bar, you can do following
arg@132 39 in .xinitrc:
arg@132 40
arg@132 41 $HOME/.dwm/status | dwm
arg@132 42
arg@132 43 Assumed $HOME/.dwm/status is an executable script like:
arg@132 44
arg@132 45 #!/bin/sh
arg@132 46 while true
arg@132 47 do
arg@132 48 echo `date` `uptime | sed 's/.*://; s/,//g'`
arg@132 49 sleep 5
arg@132 50 done
arg@132 51
arg@132 52
garbeam@0 53 Configuration
garbeam@0 54 -------------
garbeam@87 55 The configuration of dwm is done by customizing source code,
garbeam@87 56 grep for CUSTOMIZE keyword.