I am making one function to a FvwmButton that changes the value after pressing it. Now it is using three separate files, similar question I asked before, now, how to make it one file or one function? It starts and kills one FvwmPager same as autohide does but more effective.
FILE 1: testPager.txt (starts pager)
DestroyFunc StartPager
AddToFunc StartPager
+ I Module FvwmPager TestPager
+ I Schedule 1000 Read killTestPager.txt
FILE 2: killTestPager.txt
DestroyFunc StartPager
AddToFunc StartPager
+ I KillModule FvwmPager TestPager
+ I Schedule 1000 Read startTestPager.txt
FILE 3: startTestPager.txt
DestroyFunc StartPager
AddToFunc StartPager
+ I Module FvwmPager TestPager
+ I Schedule 1000 Read killTestPager.txt
Thanks for getting started. My limited fvwm experience, what to add in *X: ... ???
If this does not work, I am also looking at this wiki page: Another Alt-Tab Function. But I don’t know where and how to add “Module FvwmPager TestPager” and “KillModule FvwmPager TestPager” in the SwitchWindow function.
It will not be a key press or adding in StartFunction, but a FvwmButton with a mouse click: Action(Mouse 1) 'StartPager'
Browsing around found this in Gentoo forum using Test (EnvMatch) and TestRc (NoMatch).
This code only uses one file: starts the pager, kills it, and starts it again. That’s all and then duplicates the pager. Not a solution but maybe something more can be added.
FILE 1: testPager.txt (starts pager)
Module FvwmPager TestPager
SetEnv Switch OFF
DestroyFunc StartPager
AddToFunc StartPager
+ I Test (EnvMatch Switch ON) Module FvwmPager TestPager
+ I Test (EnvMatch Switch OFF) KillModule FvwmPager TestPager
+ I SetEnv Switch ON
Simple and clear, anywhere to switch on and off, or give multiple choices. This is what I liked about Bash. Easy to read with choices. PipeRead brings functions to a broader level, the bridge. Fvwm is truly 100% configurable.