Related to @rasat Window Tiling function. To use same action button first to Tile, on second push to DeTile, and third back to Tile. Got it to work with Schedule
. Is there a better way?
Experimenting with a FvwmButton that creates one new button. On second push it kills the new button, on third push creates a new one again.
- Read $[HOME]/.fvwm/testB.sy
## testB.sy
DestroyFunc NewBtm
AddToFunc NewBtm
+ I Read $[HOME]/.fvwm/testNew.sy
Module FvwmButtons TestBtm
DestroyModuleConfig TestBtm: *
*TestBtm: Geometry 90x50-200+100
*TestBtm: Rows 1
*TestBtm: (90x1, Title "TEST", Fore #ffffff, Action NewBtm )
Style TestBtm !Title, StaysOnTop
- New button
# testNew.sy
Module FvwmButtons TestNewBtm
DestroyModuleConfig TestNewBtm: *
*TestNewBtm: Geometry 90x50-300+200
*TestNewBtm: Rows 1
*TestNewBtm: (90x1, Title "NEW", Back #000000, Fore #ffffff )
Style TestNewBtm !Title, StaysOnTop
Schedule 1000 DestroyFunc NewBtm
Schedule 1000 AddToFunc NewBtm
Schedule 1000 + I KillModule FvwmButtons TestNewBtm
Schedule 1000 + I Read $[HOME]/.fvwm/reset.sy
- Reset function NewBtm
# reset.sy
Schedule 1000 DestroyFunc NewBtm
Schedule 1000 AddToFunc NewBtm
Schedule 1000 + I Read $[HOME]/.fvwm/testNew.sy