Re: FVWM: page navigation

From: Tavis Ormandy <taviso_at_sdf.lonestar.org>
Date: Fri, 23 Jul 2004 19:27:08 +0100

On Fri, Jul 23, 2004 at 06:27:02PM +0200, Julian Leyh wrote:
> the keys are configured like this:
>
> Key Left A 4 GotoPage -1p 0p
> Key Right A 4 GotoPage 1p 0p
> Key Up A 4 GotoPage 0p -1p
> Key Down A 4 GotoPage 0p 1p
>
> this way i get following sequences:
> 1-2-3, 4-5-6, 7-8-9 for Left/Right, and
> 1-4-7, 2-5-8, 3-6-9 for Up/Down..
> That's very nice :) but i'd like to have it a little different.
> if i'm in screen 3 and go right, i'd like to be sent to 4.. if i'm in 6,
> send me to 7.. the same for the up/down movement. from page 7 to 2, from
> page 8 to 3. the next step would be to send me from page 9 to 1 if i go
> right/down.. does anybody have info about how i could realize this?

do you know about Scroll?

for example,

        Key Left A 4 Scroll -100000 0
        Key Right A 4 Scroll 100000 0
        Key Up A 4 Scroll 0 -100000
        Key Down A 4 Scroll 0 100000

If you want more control over the wrapping, you could write a function
to control it, you can modify this one if you like:

DestroyFunc PageScroll
AddToFunc PageScroll I PipeRead 'case $0 in \
      up) test $[page.ny] -eq $$(($[desk.pagesy]-1)) -a $[page.nx] -lt $$(($[desk.pagesx]-1)) \
         && echo GotoPage +1p 0 \
         || echo GotoPage 0p +1p;; \
      down) test $[page.ny] -eq 0 -a $[page.nx] -gt 0 \
         && echo GotoPage -1p $$(($[desk.pagesy]-1)) \
         || echo GotoPage 0p -1p;; \
   esac'


> Next question is about the Translucency patch..
> Is Translucency only for menus? i tried FvwmPager, but it doesn't seem
> to be possible... FvwmPager has StaysOnTop, so it'd be nice to see
> what's in the window under it.. but i think, for that i'll need real
> translucency provided by the X server. am i right?

Right, it's only possible with menus because they're modal in nature.

-- 
-------------------------------------
taviso_at_sdf.lonestar.org | finger me for my gpg key.
-------------------------------------------------------
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Fri Jul 23 2004 - 13:29:56 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:57 BST