Re: FVWM: Iconifying widows on specific pages

From: Mikhael Goikhman <migo_at_homemail.com>
Date: Wed, 7 Feb 2001 04:32:58 -0600

On 06 Feb 2001 00:44:17 -0800, Thomas Adam wrote:
>
> I use AnotherLevel (Lestiff WM). I have it setup in
> the following way. I have one desk which is called
> "Desk" (and which contains 4 pages) and another desk
> called "Apps" (which also contains 4 pages). And when
> AnotherLevel loads, the initial desk which is
> displayed is "Desk", and on it is displayed the
> following:
>
> FvwmPager
> xcpustate
> xconsole (started Iconically)
>
> All of the above are sticky windows!! Thus when I
> change to different pages within BOTH desks those
> windows appear (obviously!!).
> My question is.....can I specify certain pages within
> a DESK so that when I switch to that desk, the sticky
> windows iconify (or are hidden) and make themselves
> "non sticky". I know that this may seem like a strange
> question, but it is a necessary one!!!

You can't specify stickiness per page or per desk, it is a global setting.
Either a window is sticky (visible on all pages) or not (only on one page).

But you may try to change stickiness dynamically if you are not afraid of
writting some functions, which would do what you need. This may be done
using Stick command which triggers stickiness, but I don't suggest this,
you will not like the result. However you may try to iconify on and off
your sticky windows when switching to some desk (or even some page).

Here are some ideas if you really need this "strange" (your word) feature.

  AddToFunc GotoDesk1
  + I Next (FvwmPager CirculateHit) Iconify 1
  + I Next (xcpustate CirculateHit) Iconify 1
  + I Next (xconsole CirculateHit) Iconify 1
  + I Desk 0 1

  AddToFunc GotoDesk0
  + I Next (FvwmPager CirculateHit) Iconify -1
  + I Next (xcpustate CirculateHit) Iconify -1
  + I Next (xconsole CirculateHit) Iconify 1 # if you prefer it iconified
  + I Desk 0 0

  Key 1 A CM GotoDesk0 # Ctrl-Alt-1 to switch to "Desk"
  Key 2 A CM GotoDesk1 # Ctrl-Alt-2 to switch to "Apps"

If you use 2.3.x version the syntax I used should work since it is still
mostly backward compatible, but I would suggest a more "correct" syntax:

  Old (2.2.x) | New (2.3.x)
--------------------------+----------------------------------
  Desk 0 1 | GotoDesk 0 1
  Iconify 1 | Iconify true
  Iconify -1 | Iconify false
  Next (xxx CirculateHit) | All (xxx) # if you have more than one xxx

In 2.3.x you may also use: All (Sticky) Iconify toggle.

> N.B. Does the fact that FvwmPager having no border
> (because it is started as "Minimal Decoration") affect
> this????

I am not sure I understand the question, but if you ask whether
decorations have any effect on stickiness, the answer is no.

Regards,
Mikhael.
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Wed Feb 07 2001 - 04:35:40 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:51 BST