Re: FVWM: page navigation

From: Julian Leyh <oenone_at_oenone.de>
Date: Sat, 24 Jul 2004 03:19:39 +0200

Thanks for the replies :)

I now have configured it the way i like it..

Here my solution for the archives and for everybody who is interested.

> 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?

I took Tavis' function (thanks alot) and modified it a bit, so that it
works for up/down and left/right and i added the wrapping from
page 9 to 1:

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

Key Left A 4 PageScroll left
Key Right A 4 PageScroll right
Key Up A 4 PageScroll up
Key Down A 4 PageScroll down

> Additionally it would be nice to have the focussed window from the
> previous page lose the focus and one of the windows (probably the next
> one to the mouse) in the new page be focussed (if there is none, no
> window gets focus, but the old one should lose it anyway). this should
> be always when i change the page.. using the obove keys, the FvwmPager
> or some other function.
> is there a simple way to make fvwm do this?

followed Thomas' link
(http://www.fvwmwiki.org/cgi/moin.cgi/Tips_2fRememberFocus) and it works
fine.. not perfect, but i'll have to have a closer look on this later.

> 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?

not really possible with my X server, but Harsh's idea looks nice..
maybe something with autohide would be nice ;) will come back to this
later

cu
JRL

-- 
visit my OpenBSD ports page: http://vgai.de/ports
--
If you don't remember something, it never existed...
If you aren't remembered, you never existed...
--
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 - 20:34:19 BST

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