Re: FVWM: Linux console-like desktop/page switching...

From: Thomas Adam <thomas_adam16_at_yahoo.com>
Date: Thu, 4 Sep 2003 10:39:48 +0100 (BST)

Eek, a very convolute if not clever way of doing it :)

There is a utility I use (as a debian package) called "vdesk", which does
what you want.

HTH,

-- Thomas Adam


 --- Elliot Sowadsky <elliot_at_lsil.com> wrote: >
> I use tr to do the desk calculation.
>
> AddToFunc GotoDesk_func
> + I PipeRead `echo GotoDeskAndPage \`echo $[desk.n] | tr 01 10\` \`eval
> expr $[pointer.wx] \\'*\\' 4 / $[w.width] \` 0
>
> (triggered from a middle click into the pager)
> Mouse 2 W N PointerWindow (FvwmPager) GotoDesk_func
>
>
> < DestroyFunc GotoLeft
> < AddToFunc GotoLeft
> < + I PipeRead '\
> < maxdesk=2;\
> < maxpage=$(($[desk.pagesx]-1));\
> < if [ $[desk.n] -gt 0 ]; then\
> < prevdesk=$(($[desk.n]-1));\
> < else\
> < prevdesk=$maxdesk;\
> < fi;\
> < if [ $[page.nx] -eq 0 ]; then\
> < echo GotoDeskAndPage $prevdesk $maxpage 0;\
> < else\
> < echo GotoPage -1p 0p;\
> < fi'
> <
> < DestroyFunc GotoRight
> < AddToFunc GotoRight
> < + I PipeRead '\
> < maxdesk=2;\
> < maxpage=$(($[desk.pagesx]-1));\
> < if [ $[desk.n] -lt $maxdesk ]; then\
> < nextdesk=$(($[desk.n]+1));\
> < else\
> < nextdesk=0;\
> < fi;\
> < if [ $[page.nx] -eq $maxpage ]; then\
> < echo GotoDeskAndPage $nextdesk 0 0;\
> < else\
> < echo GotoPage +1p 0p;\
> < fi'
>
> <
> --
> 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.

=====
Thomas Adam

"The Linux Weekend Mechanic" -- www.linuxgazette.com

________________________________________________________________________
Want to chat instantly with your online friends? Get the FREE Yahoo!
Messenger http://mail.messenger.yahoo.co.uk
--
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 Thu Sep 04 2003 - 04:42:08 BST

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