I want to start as follow a program at the start of fvwm:
mrxvt -name swatch-monitor -geometry 150x10 -ht +sb +si -e swatch-monitor.sh
in the style-config are the follow options definied:
Style swatch-monitor !Title, FixedPosition, FixedSize, StaysOnBottom, Sticky, NoIcon, NeverFocus, WindowListSkip, !Borders
ok, all went fine, but the window is on the left and top edge of the screen. Is there a simple way to define the startposition? eg. 50 from the left corner and 20 from top or something similar?
I read the manpage of fvwm and googled a lot, but couldn’t find a way…
thank you for any ideas…
Using FVWM 2.5.23 (the current FVWM unstable version), look at the PositionPlacement style condition which will do just this. If you’re not on that version then you must use FvwmEvent:
*FE: add_window "ThisWindow (swatch-monitor) Move 50 20
AddToFunc StartFunction I FvwmEvent FE
Most applications though should honour offset placements in the form you have them, using the explicit geometry. If mrxvt isn’t doing that, it’s broken.
– Thomas Adam
Thank you all for your ideas! Now, I start it like this: mrxvt -g 150x10+50+20
I doesn’t know to set the starting edge here also with +x+y
the move-option is interessting in the future for me. Thank you all!
What did you think the geometry string was for? It defines both size, and location.
– Thomas Adam