made status script example of .xinitrc more useful 6d209b9b
a@null · 2008-12-13 20:20 1 file(s) · +2 −2
README +2 −2
38 38
In order to display status info in the bar, you can do something
39 39
like this in your .xinitrc:
40 40
41 -
    dwm &
42 41
    while true
43 42
    do
44 43
        xsetroot -name "`date` `uptime | sed 's/.*,//'`"
45 44
        sleep 1
46 -
    done
45 +
    done &
46 +
    exec dwm
47 47
48 48
49 49
Configuration