On Fri, Jul 02, 2010 at 05:18:16AM +0200, [email protected] wrote:
> Hi
> I use fvwm 2.5.26 and
> I try to put fvwmbuttons in the bottom and in the middle of my screen
> in a calculated way.
> I tried this:
> PipeRead "echo *FvwmButtons: Geometry +$$(($[vp.width]/2-$[w.width]/2))
> +$$(($[vp.height]-$[w.height]))"
Assuming your MUA didn't wrap this, your PipeRead should be all on one line.
> and this (as explained in the FAQ (7.14)):
> DestroyFunc PlaceWindow
> AddToFunc PlaceWindow
> + I ThisWindow Piperead "echo Move +$(( $[vp.width]/2-$[w.width]/2 ))p
> +$(( $[vp.height]/2-$[w.height] ))p"
Likewise here -- this *has* to be on one line, otherwise your PlaceWindow
function will tell you you're missing a field.
> DestroyFunc StartFunction
> AddToFunc StartFunction
> + I Module FvwmButtons
> + I Next (FvwmButtons) PlaceWindow
This isn't right either, because it's likely PlaceWindow won't get run at
the right time, you really mean:
AddToFunc StartFunction
+ I Module FvwmButtons
+ I Wait FvwmButtons
+ I Next (FvwmButtons) PlaceWindow
Note here two things as well (in no particular order):
1. Using an alias of FvwmButtons here is disasterous, because *all*
instances of FvwmButtons would get shifted to some predefined location --
use a better alias name for your FvwmButtons.
2. Use FVWM version 2.5.30, and you can forget the above in lieu of:
Style some_better_fvwmbuttons_name InitialMapCommand PlaceWindow
Finally (and it is a little bit too early here for me), are you sure your
maths is correct? Looks a bit wonky to me.
-- Thomas Adam
--
"Deep in my heart I wish I was wrong. But deep in my heart I know I am
not." -- Morrissey ("Girl Least Likely To" -- off of Viva Hate.)