Re: [dwm] [ANNOUNCE] dvtm-0.2

2008-01-10 Thread Alessandro Dotti Contra
Hi Marc,

Marc Andre Tanner wrote:
 
 See the attached patch for a possible implementation. You will need
 current master which you can fetch from the url below than apply the
 patch.
 
   http://repo.or.cz/w/dvtm.git?a=snapshot;sf=tgz
 
 Configure the action array to launch your apps. The problem is that after 
 a keystroke only the content of the selected window is shown. 
 I will have to take a closer look.

Yes, this is exactly the idea I had in mind. Thanks for that; I'll wait
for a full functional patch to try.

ciao
alex

-- 
Alessandro Dotti Contra
ASTER Scienza Tecnologia Impresa - scpa
Area di Ricerca di Bologna
Via Gobetti 101 -  I-40129 Bologna
Tel +39 051 6398099 Fax +39 051 6398131
http://www.aster.it



Re: [dwm] mail notification again

2008-01-10 Thread Jukka Salmi
Peter Vollmar -- dwm (2008-01-09 23:05:49 +0100):
 Hi everybody,
 Following the discussion earlier in December I've found a good solution
 with 'fetchmail -c' showing the number of new messages in the status bar. The 
 code copied from Martin Sander's comment is:
 
 fetchmail -c|sed 's/(//'|awk '{print $1-$3}'
 1

Hmm, this doesn't really work if you configure fetchmail to check more
than one folder... And, BTW: if you use more than one of grep, sed and
awk in a single pipline, you have almost always done something wrong
;-)


 The problem is that fetchmail accesses the mail server as often as the
 other services in the status bar are accessed - usually every few
 seconds, which is unnecessarily often for imap! I've changed it to 60
 seconds, which is about the lowest reasonable for the 'date' and 'uptime'. Is
 there anything we can do about this?

Run all commands except fetchmail every n seconds in a loop as you
already do, and fetchmail only every m loop iterations. Thus fetchmail
will be executed only every mn seconds.


HTH, Jukka

-- 
bashian roulette:
$ ((RANDOM%6)) || rm -rf ~



Re: [dwm] mail notification again

2008-01-10 Thread Martin Sander
On Thu, Jan 10, 2008 at 02:12:30PM +0100, Peter Vollmar wrote:
 I don't have cron, so I'm interested in a separate loop (or distinct loop
 iterations), but I don't know how to do it :-)

You don't have cron? What kind of system are you running?

You can just write a short script called e.g. mailchecker.sh that does
your mailchecking in a loop containing e.g. a sleep 300.
Start this script in the background in your .xinitrc:

~/bin/mailchecker.sh 
MAILCHECKPID=$!

# run dwm as before here

# make sure the script is killed when dwm exits
kill $MAILCHECKPID

Regards

Martin



Re: [dwm] [ANNOUNCE] dvtm-0.2

2008-01-10 Thread Christian Garbs
On Wed, Jan 09, 2008 at 10:27:14PM +0100, Marc Andre Tanner wrote:

 Configure the action array to launch your apps. The problem is that after 
 a keystroke only the content of the selected window is shown. 
 I will have to take a closer look.

Hey, it looks nearly exactly the same as the patch I had prepared (I
also wanted to create some clients on startup).  You've also run into
exactly the same problem as me :-)

I wanted to give it a try with the new redraw command (my second
reason to that feature request).

Regards,
Christian
-- 
Christian.Garbs.http://www.cgarbs.de

OH KATH RA


signature.asc
Description: Digital signature


Re: [dwm] [ANNOUNCE] dvtm-0.2

2008-01-10 Thread Christian Garbs
On Thu, Jan 10, 2008 at 09:58:20PM +0100, Marc Andre Tanner wrote:

 I think i have figured it out, could you please test the attached patch.

It works!

Now I start my terminal and I have my reattached irssi session right
there together with a fresh shell to do some work or read my mails.

Simply great!
Christian
-- 
Christian.Garbs.http://www.cgarbs.de

Press any key to continue...
or any other key to quit!


signature.asc
Description: Digital signature