Re: FVWM: Perform action, one in a time - at every open window at all desks and workspaces.

2020-02-07 Thread Peter Holm
I often restart fvwm. With tons of windows open. So that no windows
are open - cant be the reason.

I have written in this thread espcially about that - and maybe found a
way out of it.
But the message is stalled . So I have to wait until it been moderated.

And I prefere to not use fvwm-event in this case - out of several
reasons. I have the thumbnail-function executed every time i switch
desktop.

I just want a helper function that I runs only when needed.

2020-02-07 17:08 GMT+01:00, Dominik Vogt :
> Please don't top-post on this list and leave the relevant portions
> of the discussion intant when replying to a message.
>
> On Fri, Feb 07, 2020 at 04:10:49PM +0100, Peter Holm wrote:
>> I am not sure  if the All command is the solution.  I suppose the
>> actual viewport (if that is the correct term here) should be at the
>> actual desk and page before the function thumbnail_minicons executes.
>>
>> Am I wrong.?
>
> "All" (without further conditions) does what the name suggests:  It
> executes the action for each and every existing window at the time
> when its called.  E.g.
>
>   All MoveToDesk
>
> moves all windows to the current desk.
>
>> 2020-02-07 11:56 GMT+01:00, Peter Holm :
>> > No go with
>> > AddtoFunc StartFunction
>> > + I All Thumbnail_MiniIcons
>
> The problem with that approach is that the function is executed in
> the StartFunction, before any window is created.  If it's really
> necessary to execute a function for a new window, the FvwnEvent
> module can be used.
>
> Ciao
>
> Dominik ^_^  ^_^
>
> --
>
> Dominik Vogt
>
>


-- 
Med vänlig hälsning / With kind regards
 /Peter Holm



Re: FVWM: Perform action, one in a time - at every open window at all desks and workspaces.

2020-02-06 Thread Dominik Vogt
On Thu, Feb 06, 2020 at 10:00:57PM +0100, Peter Holm wrote:
> Is there any way go to every populated desk/page, and  perform action
> at windows att thoose desk/pages.?

Yes, the command is "all", e.g.

  all Thumbnail_MiniIcons

> I would like to perform  this modified version of Tavis Ormandy's
> tumbnial function at every populated desk/page  when some specific
> comdirions are met.
>
> DestroyFunc Thumbnail_MiniIcons
> AddToFunc Thumbnail_MiniIcons
> + I SetEnv fvwm_mini_icon_size   64 ##Replace with infostore
> + I Current Raise
> + I SetEnv MiniIcon-$[w.id] $[w.MiniIconFile]
> + I ThisWindow (!Shaded, Focused, !Overlapped, !FvwmPager, !Iconic) PipeRead \
> " echo Raise; $[FVWM_USERDIR]/bin/thumb $[w.id] $[fvwm_mini_icon_size]\
>  $[FVWM_USERDIR]/tmp/mini_icon.tmp.$[w.id].png $[w.MiniIconFile]\
>   && echo WindowStyle EWMHMiniIconOverride, MiniIcon
> $[FVWM_USERDIR]/tmp/mini_icon.tmp.$[w.id].png || echo Nop"

Ciao

Dominik ^_^  ^_^

--

Dominik Vogt