Re: FVWM: placing a window on startup

2012-09-11 Thread Vitezslav Cizek
Hi,
* V Úterý 11. září 2012, 13:23:04 [CEST] lee napsal:
> Viktor Griph  writes:
> 
> > 2012/9/9 lee :
> >> Hi,
> >>
> >> is there a way to specify the position on the screen for a window to
> >> appear when a program is started? In this case, I want to appear conky
> >> at a particular position on the screen, and conky seems not to know the
> >> -geometry option.
> >
> > Have a look at the PositionPlacement style option.
> 
> Thanks :)
> 
> This is wonderful, I didn't realise these placement options are actually
> styles. That must be something I remember to be a global option from
> fvwm1 ...
> 
> "PositionPlacement -0 +0" does what I want very elegantly :)
> 
You got this solved using Fvwm,
however conky has command line options -x and -y,
which allow you to specify the coordinates.

  Vita



Re: FVWM: placing a window on startup

2012-09-11 Thread Thomas Adam
Hi,

On 11 September 2012 12:23, lee  wrote:
> Is it possible to make a "particular window" pop up under the pointer
> upon pressing a key? "Particular window" means that I usually have an
> rxvt open with a screen session. I don't want this window to be
> sticky. When I move to another page of the desktop, I might want to move
> this window to the page I'm on and place it on top of other windows
> under the pointer by pressing a key.

For this, I would mark such a window as having a State. How you do
that is up to you but it could be a key-binding such as:

Key foo A A State n

And then in terms of your binding to move it, you would need to do:

Key ... Next (State n) Move .

You could use a function if you wanted something more complicated.

-- Thomas Adam



Re: FVWM: placing a window on startup

2012-09-11 Thread lee
Viktor Griph  writes:

> 2012/9/9 lee :
>> Hi,
>>
>> is there a way to specify the position on the screen for a window to
>> appear when a program is started? In this case, I want to appear conky
>> at a particular position on the screen, and conky seems not to know the
>> -geometry option.
>
> Have a look at the PositionPlacement style option.

Thanks :)

This is wonderful, I didn't realise these placement options are actually
styles. That must be something I remember to be a global option from
fvwm1 ...

"PositionPlacement -0 +0" does what I want very elegantly :)


Another question:

Is it possible to make a "particular window" pop up under the pointer
upon pressing a key? "Particular window" means that I usually have an
rxvt open with a screen session. I don't want this window to be
sticky. When I move to another page of the desktop, I might want to move
this window to the page I'm on and place it on top of other windows
under the pointer by pressing a key.

Moving and raising the window is probably easy. The problem is how to
let fvwm know which window I want to move to the pointer. How could I
identify the window?


-- 
http://www.asciiribbon.org/
http://tools.ietf.org/html/rfc1855
http://www.caliburn.nl/topposting.html