Re: [wmii] Automatic startup - newbie

From: Anselm R. Garbe <garbeam_AT_wmii.de>
Date: Tue, 10 Jan 2006 13:05:08 +0100

On Mon, Jan 09, 2006 at 08:37:23PM +0100, Daniel Maier wrote:
> On Mon, Jan 09, 2006 at 03:14:17PM +0530, Renjith Rajan wrote:
> > 1. How to start programs automatically at startup and bind them to specific
> > pages and frames.
> Starting is easy. Just start them from the same file/script, where
> you start wmii, and put them to background using &.
> > For example
> > - i want to start my mail client in the fourth page in the maximized mode.
> > - i want to start gaim in the second page and in the tiled format.
> > - browsers in the first page (maximized).
> > - xterms in the 3rd page.
> This is not possible, at least not with a clean solution. You could
> create pages, start clients, wait some time until it hopefully
> started, create another page, start, wait, etc.
> But this is quick and dirty and everything but nice

The main problem is, that X don't provides any information about
which window is associated with a process. Thus it is
indecisable which window is related to which page/frame or
whatever you can think about. A planned heuristicin wmii-3 is to
allow execution of processes in the page ctl device, ie:

echo xterm |wmiir write /wm/page/1/ctl

This would run xterm in page1 driven by a MapRequest FIFO.
Assumed that you started OpenOffice or some other lame app
before above command, it might be, that the MapRequest of such
upcoming window will interfere and instead of xterm, OpenOffice
will be attached in page1. In general this heuristic might work
well though.

> > 2. I use gaim, so, is there a method to automatically go to gaim window (or
> > the page where gaim is opened) when new messages are received ? (I have
> If you can execute something whenever a message arrives, you can
> tell wmii to change to that page, using
> wmmir write /wm/ctl 'select 2'
> or what page you want.
> But this is also a bad hack in my mind.

There might be generated special events by gaim, thus I
recommend instead of selecting such a page adding some info to
wmiibar, maybe into a special label.

Grusz,

-- 
 Anselm R. Garbe  ><><  www.ebrag.de  ><><  GPG key: 0D73F361
Received on Tue Jan 10 2006 - 13:05:08 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:59:42 UTC