Change EwmhBaseStruts in case the dock is hidden or no

Hello,

everything is in the title.
I have this function in order to hide my dock :

[code]DestroyFunc LockingSlide
AddToFunc LockingSlide

  • I Test (!State 2) Break
  • I State 2 False
  • I AnimatedMove $0 $1
  • I State 2 True

*Side: (160x5, Action(Mouse 1) Next (CirculateHit, Side) PipeRead 'echo LockingSlide keep $$(test $$(($[w.height]+$[w.y])) -le $[vp.height] && echo w$$(($[w.height]-$height))p || echo w-$$(($[w.height]-$height))p)')
[/code]
I have set EwmhBaseStruts 0 160 0 0. I would like to change this by EwmhBaseStruts 0 0 0 0 when the dock is hidden. How is it possible ? I’ve tried this without success :

Test (State 2 False) SetEnv OffsetMax 160 Test (State 2 True) SetEnv OffsetMax 0 EwmhBaseStruts 0 $[OffsetMax] 0 0
Any ideas ?

[color=red]Edited by theBlackDragon:
–> Moved from Basic questions[/color]

You could try:

AddToFunc SomeFunc
+ I All (CurrentPage, !Transient) ThisWindow (!State 2) EwmhBaseStruts 0 160 0 0
+ I TestRc (Match) Break
+ I All (CurrentPage, !Transient) ThisWindow (State 2) EwmhBaseStruts 0 0 0 0

I haven’t tried it, though.

– Thomas Adam.

I do this in my configuration, you can take a look at what mine currently looks like here if you like:
http://dev.gentoo.org/~taviso/fvwm2rc.beta.html :slight_smile:

(note, still a bit of a mess at the moment, i’m slowly tinkering with it)