Hi everyone,
I've been using Metisse for a while now, and I still find the way to get
out from PagerMode a bit boring.
Indeed, we can work on applications in PagerMode, so the mouse wheel is
inefficient to get out that mode because this event passes to the
application itself. So it is impossible to come back to full page without
"wheeling" on the root window.
I tried to use a mouse binding (like Alt + wheel). It works but not if I
do it over a window that doesn't belong to the active page, and this is
this active page that came back instead of the one I use the binding into.
I wrote some functions to get rid of that behavior (I leave them at the
end of this post if anyone is intereted in) using the way the variables
$[pointer.x] et $[pointer.y] are used in PagerMode.
So I was wondering somme things :
- Is it possible to remove the current mouse bindings that are active in
PagerMode (Mouse wheel, buttons 2 and 3) ? I looked into Metisse code and
think those bindings are defined in there so I don't know if it would be
possible without a patch (that I cannot write because of my lack of skills
in C++ programming)
- Is there another way to test if PagerMode in active or not than defining
a variable for that ?
Thx in advance for your answers.
P.S. Please forgive my engligh speaking, too french to be genuine !
Functions for PagerMode :
========================
metisserc
-----------
PipeRead "echo SetEnv ScreenWidth $(xdpyinfo | grep dimensions | awk -F'
|x' '{print $$7}')"
PipeRead "echo SetEnv ScreenHeight $(xdpyinfo | grep dimensions | awk -F'
|x' '{print $$8}')"
SetEnv PagerModeActive "No"
functions
-----------
DestroyFunc ActivatePagerMode
AddToFunc ActivatePagerMode
+ I Test (EnvMatch PagerModeActive "No") sma PagerMode On
+ I TestRc (Match) SetEnv PagerModeActive "Yes"
DestroyFunc ChangePageAndDeactivatePagerMode
AddToFunc ChangePageAndDeactivatePagerMode
+ I PipeRead 'echo GotoPage $((($[pointer.x] + 2 * $[ScreenWidth]) /
$[ScreenWidth] - 2))p $((($[pointer.y] + 2 * $[ScreenHeight]) /
$[ScreenHeight] - 2))p'
+ I sma PagerMode Off
DestroyFunc DeactivatePagerMode
AddToFunc DeactivatePagerMode
+ I Test (EnvMatch PagerModeActive "Yes") ChangePageAndDeactivatePagerMode
+ I TestRc (Match) SetEnv PagerModeActive "No"
Mouse
-------
Mouse 4 A M DeactivatePagerMode
Mouse 5 A M ActivatePagerMode
_______________________________________________
Metisse mailing list
[email protected]
http://lists.lri.fr/mailman/listinfo/metisse