Re: FVWM: Smart maximize

2012-11-28 Thread Bastian
Have you tried to set the Style MinPlaceOverlap to subjected window and
then call PlaceAgain on it?

This works for me:

DestroyFunc movetofreeplace
AddToFunc movetofreeplace
+ I WindowStyle MinOverlapPlacement
+ I PlaceAgain




On 28Nov12 17:24 +0100, Piotr Isajew wrote:
> On Sat, Nov 24, 2012 at 09:14:36AM -0500, Dan Espen wrote:
> 
> > If you want to go that far, I recommend using FvwmPerl and the
> > module interface.  You can ask Fvwm for a list of windows with
> > Send_Windowlist.
> 
> Thanks. I've tried the module interface. It will be probably the
> best option for what I need.
> 
> Regards,
> 
> Piotr
> 



Re: FVWM: SendKey Multicast ...

2012-11-22 Thread Bastian
On 22Nov12 09:17 -0500, Dan Espen wrote:
> Fvwm doesn't have a command to generate keystrokes.

I was thinking about:

WindowId 0x1402179 FakeKeypress press H

where the winid is a urxvtc 

this works for me as an example...




Re: FVWM: SendKey Multicast ...

2012-11-22 Thread Bastian
On 22Nov12 14:17 +, Thomas Adam wrote:
> This is what tmux(1) using its "synchronize-panes" option is for.

Great. I will go for tmux then!

I my setup I will have tmux inside tmux then ...



FVWM: SendKey Multicast ...

2012-11-22 Thread Bastian


Hi List,

I wonder if it is somehow possible to send key events (typed in a
head-window) to a set of other client-windows...

This could help in doing small sized cluster/VM administration ...



Thanks,



Re: FVWM: set style by state

2012-11-07 Thread Bastian
On 07Nov12 09:19 +, Thomas Adam wrote:
> What do you think this line does?

I expected the line to select a set of windows, on which the following
functions operate. Now I see that this is not working this way.



Re: FVWM: $[page.nx] etc. not functioning

2012-11-07 Thread Bastian
On 07Nov12 10:12 +, Thomas Adam wrote:
> Correct.  And?

... just for info.



Re: FVWM: set style by state

2012-11-07 Thread Bastian
On 07Nov12 07:54 +, Thomas Adam wrote:
> Sure it does -- again, there's a difference between a window and
> function context.  Confer:

Sorry for causing confusion. You are right, the following works:

"""
DestroyFunc F0
AddToFunc F0
+ I Pick
+ I Move w+10 w+0
+ I Move w+0 w+10

DestroyFunc F1
AddToFunc F1
+ I All (FvwmConsole)
+ I Move w+10 w+0
+ I Move w+0 w+10

Key F9 A A Function F1
Key F8 A A Function F0
"""
F8 and F9 both move the window in the same way.



What does not work (for me with 2.5.30) is this listing:
"""
DestroyFunc PullTaggedWindows
AddToFunc PullTaggedWindows
+ I All (State $0) 
+ I Move w+10 w+0
+ I Move w+0 w+10
"""
Here the mouse pointer offers me to interactively select a window.

On the other hand this works:
"""
DestroyFunc PullWindow
AddToFunc PullWindow
+ I Move w+10 w+0
+ I Move w+0 w+10

DestroyFunc PullTaggedWindows
AddToFunc PullTaggedWindows
+ I All (State $0) PullWindow
"""
Here the windows with the state set are moved properly.


Maybe there is an issue when using states as the conditional ?!?




Re: FVWM: set style by state

2012-11-05 Thread Bastian
> Try adding this to PullTaggedWindows:
> 
> + I All (State $0) WindowStyle HilightBack #ff, BorderWidth 10


Great, the WindowStyle statement is working for me. Thanks,



Re: FVWM: set style by state

2012-11-05 Thread Bastian
> State is for conditional expressions.
> We need more information about what you are trying to do.

More in detail:

Mouse 2 W 4 Function TagWindow 10
Mouse 2 R 4 Function PullTaggedWindows 10

DestroyFunc TagWindow
AddToFunc TagWindow
+ I Pick State $0 1

DestroyFunc PullTaggedWindows
AddToFunc PullTaggedWindows
+ I All (State $0) MoveToPage
+ I All (State $0) MoveToDesk
+ I Schedule 500 All ( State $0 ) State $0 0

I use State 10 for tagging arbitrary windows.
Now I would like to give the tagged windows a different style than
untagged windows (e.g. a big red border)
I guess that's not possible doing it with the Style statement, because
it does not accept conditional expressions (only name, class, resource)

> Perhaps when you set the state, you should also set the style.

I do not know how to apply a style rule to a single window.
This would solve my problem of course.


Thanks,



FVWM: set style by state

2012-11-05 Thread Bastian
Hi list, 

someone may has an idea of how to make a State of a window visible.

e.g. if a window has State 10 true, give it a big red border.



Behind this, I try to do tag arbitrary windows (even from different
pages) with State 10 to true and then calling on another Page All (State
10) MoveToPage.  This works, but I do not see it, when windows are
tagged.


Thanks,
Bastian



Re: FVWM: FvwmIconMan: Sticky Icons..

2011-02-23 Thread Bastian
On 21.Feb.11 16:32 +, Thomas Adam wrote:
> But you can do this -- assuming you tell FvwmIconMan to not honour
> WinListSkip.
> 
> Style * WindowListSkip
> Style foo Sticky, WindowListHit
> Style bar StickyPageIcon, WindowListHit
Thanks Thomas, 
   this approach worked, but ofcourse it unconfigured my WindowList
   setup, which I am used to work with as well.

   Now I am doing, some kind af symbiosis between WindowList and 
   FvwmIconMan.



   Cheers,