Re: [dev] dwm taskbar config

2011-03-24 Thread Le Tian
well, I shall reply just to draw a line. I managed to do everything. So I created .xsession file with the following lines: while true do xsetroot -name "`df -h / | awk 'END {print "root:" $5"|"}' | sed 's/Use%//'` `df -h /home| awk 'END {print "home:" $5"|"}' | sed 's/Use%//'` `uptime | awk '{prin

RE: [dev] dwm taskbar config

2011-03-23 Thread Wolf Tivy
s/tail recursion/tail call/ > Original Message > Subject: RE: [dev] dwm taskbar config > From: "Wolf Tivy" > Date: Wed, March 23, 2011 9:17 pm > To: "dev mail list" > > > > "like this in your .xinitrc: > > >

RE: [dev] dwm taskbar config

2011-03-23 Thread Wolf Tivy
> "like this in your .xinitrc: > > while true > do > xsetroot -name "`date` `uptime | sed 's/.*,//'`" > sleep 1 > done & > exec dwm That's what you want, put that wherever your DM expects it. This thread is a train wreck of confusion, ignore everything but that sc

Re: [dev] dwm taskbar config

2011-03-23 Thread Patrick Haller
On Wed, Mar 23, 2011 at 10:34:57PM +0200, Le Tian wrote: >Yeah, your variant is better, but why should I make exec dwm? I highly recommend writing a tiny looping shell script .e.g. each of the various ideas below, and watching what they do with pstree or 'ps fax'. #1 while true; do ex

Re: [dev] dwm taskbar config

2011-03-23 Thread flo
On Wed, 23 Mar 2011 23:00:04 +0200, Le Tian wrote: well what I need, is a sample of somebody's config, without exec dwm? cause it is executed right after login by the system, I do not run "startx", I use KDE login manager to start dwm, so .xinitrc with "exec dwm" is useless, am I right? Like

Re: [dev] dwm taskbar config

2011-03-23 Thread Andrew Antle
> I wish there would be a good howto about this stuff, so that regular users > could benefit from it. Sorry With a display manager, I think you're supposed to use . xsession, or edit the dwm.desktop file to execute a script containing what would be in the .xinitrc. I would imagine that a lot of p

Re: [dev] dwm taskbar config

2011-03-23 Thread Le Tian
well what I need, is a sample of somebody's config, without exec dwm? cause it is executed right after login by the system, I do not run "startx", I use KDE login manager to start dwm, so .xinitrc with "exec dwm" is useless, am I right? I'm sorry guys, I'm just a user, and I can't write shell scrip

Re: [dev] dwm taskbar config

2011-03-23 Thread Sean Howard
My apologies. I am at work, no chance to look at my own .xinitrc but I was under the impression I did use exec dwm. Perhaps I don't and am just a bit addled. On 23 March 2011 16:37, Henri Ducrocq wrote: > Doing exec won't allow for execution of the loop since dwm is going to > replace the shell

Re: [dev] dwm taskbar config

2011-03-23 Thread Henri Ducrocq
Doing exec won't allow for execution of the loop since dwm is going to replace the shell process. On Mar 23, 2011 8:35 PM, "Le Tian" wrote: > Yeah, your variant is better, but why should I make exec dwm? when I log in > via kde login manager?( I edited sysconfig, so my default wm is dwm) > That is

Re: [dev] dwm taskbar config

2011-03-23 Thread Le Tian
Yeah, your variant is better, but why should I make exec dwm? when I log in via kde login manager?( I edited sysconfig, so my default wm is dwm) That is, when I see a login prompt I enter password and start dwm as default. When I make .xinitrc, dwm do not start, I can see only desktop empty screen.

Re: [dev] dwm taskbar config

2011-03-23 Thread Sean Howard
Firstly: you are not closing one of the three nested loops. Secondly: You don't need that many loops, just one infinite loop should be fine. Also, that "&" makes it so it both runs dwm AND continues the loop, this is a good thing. Thirdly:: calling dwm is not a good idea inside any of the loops Fou

Re: [dev] dwm taskbar config

2011-03-23 Thread Le Tian
ok, sorry, thanks, I will look into it

Re: [dev] dwm taskbar config

2011-03-23 Thread Thomas Dahms
Am 23.03.2011, 21:08 Uhr, schrieb Le Tian : ok, now I tried to make .xinitrc file in my home/me dir, and added these lines: while true do while true do while true do xsetroot -name "$(date +"%a, %b %d %Y | %H:%M")" sleep 55s done &

Re: [dev] dwm taskbar config

2011-03-23 Thread Le Tian
ok, now I tried to make .xinitrc file in my home/me dir, and added these lines: while true do while true do while true do xsetroot -name "$(date +"%a, %b %d %Y | %H:%M")" sleep 55s done & /usr/bin/dwm done but it doesn't wor

Re: [dev] dwm taskbar config

2011-03-23 Thread Le Tian
thanks, I will figure out how to do it, cause last time I messed with .xinitrc wmii crashed(

Re: [dev] dwm taskbar config

2011-03-23 Thread Connor Lane Smith
Hi, On 23 March 2011 19:31, Le Tian wrote: > But I have a question, how do I run some script output in my taskbar the way > I did in wmiirc_local, I mean time, hdd space etc. I looked up  config.h but > didn't find anything there to look like bar config. > I will be very happy if you help me. dw

[dev] dwm taskbar config

2011-03-23 Thread Le Tian
Hi everybody, after using wmii for a week, I decided to try dwm, and liked it even MORE! But I have a question, how do I run some script output in my taskbar the way I did in wmiirc_local, I mean time, hdd space etc. I looked up config.h but didn't find anything there to look like bar config. I wi