I tried the ActiveAction patch (thank you for the link, Thomas Adam) , and it’s a good way in the direction where i want to go.
However i have not reached what i realy need, a fvwmpager where i change desks/pages just when i hover the mouse over the pages.
Here is how my code looks like today
- I Module FvwmPager 0 0
- I Exec exec fvwm-root -r /MISC/MEDIA/pics/backgrounds/redsomething.png
- I Module FvwmButtons
DestroyModuleConfig FvwmButtons: *
Style “FvwmButtons” Title, Handles, borders, Sticky,
*FvwmButtons: Columns 3
*FvwmButtons: Rows 3
*FvwmButtons: (Title “0.0”, ActiveAction “GotoDeskAndPage 0 0 0”)
*FvwmButtons: (Title “0.1”, ActiveAction “GotoDeskAndPage 0 1 0”)
*FvwmButtons: (Title “0.2”, ActiveAction “GotoDeskAndPage 0 2 0”)
*FvwmButtons: (Title “0.3”, ActiveAction “GotoDeskAndPage 0 0 1”)
*FvwmButtons: (Title “0.4”, ActiveAction “GotoDeskAndPage 0 1 1”)
*FvwmButtons: (Title “0.5”, ActiveAction “GotoDeskAndPage 0 2 1”)
*FvwmButtons: (Title “0.6”, ActiveAction “GotoDeskAndPage 0 0 2”)
*FvwmButtons: (Title “0.7”, ActiveAction “GotoDeskAndPage 0 1 2”)
*FvwmButtons: (Title “0.8”, ActiveAction “GotoDeskAndPage 0 2 2”)
Style “FvwmPager” Title, Handles, borders, Sticky, WindowListSkip, CirculateSkip, Iconifiable, NoIcon
DestroyModuleConfig FvwmPager: *
*FvwmPager: Geometry 200x200-400+300
*FvwmPager: Colorset * 4
*FvwmPager: MenuColorset * 7
*FvwmPager: HilightColorset * 10
*FvwmPager: BalloonColorset * 9
*FvwmPager: WindowColorsets 9 10
*FvwmPager: Font “xft:Sans:Bold:pixelsize=12:minspace=True:antialias=True”
Any comments about the code in general is appricated.
The only ideas i can come up to how show the pager and change desks/pages while i sweep with the mouse over it is,
A: i can use Transet-df to set the FvwmButtons Module to 100% Transluacency, and have the FvwmPager module in the same position so i see FvwmPager and also leftclicks and middleclickanddrag can i bypass to the FvwmPager module.
B:I can make one FvwmPager for each pages/desks and let FvwmButtons swallow them and place them side by side in the same order as i should have in the ‘real’ FvwmPager and in each lower right corner i place a small FvwmButton which have the ActiveAction invoked which let me switch to the nearest Desk/Page
None of theese ideas are realy that good, A: lags my computer and B:have some practical problems (i use 9 desks and 9 pages at each desk - so there should be a lot of code (even though it is a easy to create one block of code and then copy and paste them and just change the needed digits for the desks and pagees) - and i maybe not hit the button while i sweep with the mouse
There are orther solutions as well, such as Swallow FvwmPager in FvwmButtons and have a tab where i can click on to change between buttons that represents my pages or show FvwmPager itself in the normal way, i also could keep them as separate modules - but that is not either the right solution to me.
Does anyone out there have ideas how to make this in a more elegant way.?