Re: FVWM: Style ... SkipMapping

Hegel3DReloaded <[email protected]>
Newsgroups gmane.comp.window-managers.fvwm
Message-ID <HHRWHnf6gxPAMGOGfqcu3701nMjkNutJ4mZMnhqMvtZLpkUujtgH_yBWK0iH3I0HKOkOium-dsqgHSuh9_arDcz1NyzdiN5iZvwOl-jJq5k=@protonmail.com>
On Saturday, 16. November 2019 15:20, Dr Rainer Woitok <[email protected]> wrote:

> Greetings,
>
> maybe I totally misinterpret the "fvwm" manpage ...
>
> 1.  What I want:
>     During the login process on my laptop I want to fire up Firefox using
>     a page different from the default page where my terminal window is
>     opened. This way I can start entering commands without having to
>     wait for Firefox loading all its tabs.
>
> 2.  What I do:
>
>     $ grep -C2 Firefox ~/.fvwm/config
>
>     Always position a "firefox" window on page "0 0 1":
>
>     ====================================================
>
>
> Style Firefox FixedPPosition
> Style Firefox PositionPlacement 0p $[WINDOW_TOP]p
> Style Firefox StartsOnPage 0 0 1
>
> ==
>
> $ grep -iC2 firefox firefox-start-up.sh
>
> Finally start "firefox" in its own page without going there:
>
> =============================================================
>
> FvwmCommand 'Style Firefox SkipMapping'
> nohup firefox > /dev/null 2>&1 &
>
> 3. What happens:
> Firefox is starting in its own page, but this page is also the one
> shown on the screen rather than the page containing my terminal wind-
> ow.

You need to leave this page. Since this is probably in the InitFunction, then simply:

+ I GoToPage 0 0

(for example, you want firefox on 0 1, and terminal is waiting for you on 0 0).

Why not something like this in InitFunction or SessionInitFunction?

+ I Exec exec firefox
+ I Wait Firefox
+ I Next (Firefox) MoveToPage 0 1

It will only flash for a part of the second and go away from your terminal.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.