Discussion:
FVWM: placing a window on startup
lee
2012-09-09 20:34:50 UTC
Permalink
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.
--
http://www.asciiribbon.org/
http://tools.ietf.org/html/rfc1855
http://www.caliburn.nl/topposting.html
Thomas Adam
2012-09-09 20:40:24 UTC
Permalink
Post by 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.
Use the PositionPlacement style option.

-- Thomas Adam
Viktor Griph
2012-09-09 20:42:00 UTC
Permalink
Post by 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.

/Viktor
lee
2012-09-11 11:23:04 UTC
Permalink
Post by Viktor Griph
Post by 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
Thomas Adam
2012-09-11 11:46:48 UTC
Permalink
Hi,
Post by lee
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
Vitezslav Cizek
2012-09-11 12:23:30 UTC
Permalink
Hi,
Post by lee
Post by Viktor Griph
Post by 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

Loading...