[dwm] A question about drawbar()

2008-07-10 Thread Mayhem 666
A friend of mine wrote the following shell code to display the date after the window title. while true do echo [`date +'%a %d %b %H:%M'`] sleep 2 done | while true; do dwm; done I was wondering if someone could point me to how i can manipulate the drawbar() function to achieve the same result.

[dwm] Status text clock patch

2008-07-10 Thread John Mpanos
After some digging around i figured what to do to draw text in the status area, so i wrote a simple clock using threads. I can't understand though why the clock doesn't get updated sometimes even though i call drawbar() directly from the thread run method... Any help would be appreciated, and also

Re: [dwm] Status text clock patch

2008-07-10 Thread Mate Nagy
Hulloh, On Thu, Jul 10, 2008 at 06:35:03PM +0300, John Mpanos wrote: After some digging around i figured what to do to draw text in the status area, so i wrote a simple clock using threads. I can't understand though why the clock doesn't get updated sometimes even though i call drawbar()

Re: [dwm] A question about drawbar()

2008-07-10 Thread Jason Thigpen
You swhouldn't need to mess with drawbar() for this. Just put these shell lines in your ${HOME}/.xinitrc . Mine looks like this : while true do echo `date +%m/%d %H%M` sleep 60 done | dwm (you only need to pole date once a minute for as accurate as you are getting) -J On Jul 10,