Re: FVWM: Finding the number of desktops

From: Thomas Adam <thomas_adam16_at_yahoo.com>
Date: Mon, 22 Mar 2004 09:15:11 +0000 (GMT)

 --- Tavis Ormandy <taviso_at_sdf.lonestar.org> wrote: >
>
> --On Monday, March 22, 2004 04:09:29 +0000 Ukpong Ukpong
> <ukpongu1_at_cs.man.ac.uk> wrote:
>
> > Is there any way of finding out how many desktops there are....
> >
>
> No, but there is a good reason for this...
>
> "The number of active desktops is determined dynamically. Only desktops
> which contain windows or are currently being displayed are active.
> Desktop
> numbers must be between 2147483647 and -2147483648 (is that enough?)."

You could do something like (untested):

ruby -ne'/desktopsize (\d+)x(\d+)/; puts( ($1.to_i * $2.to_i) )'
~~/fvwm/.fvwmrc

-- Thomas Adam

=====
"The Linux Weekend Mechanic" -- http://linuxgazette.net
"TAG Editor" -- http://linuxgazette.net

"<shrug> We'll just save up your sins, Thomas, and punish
you for all of them at once when you get better. The
experience will probably kill you. :)"

 -- Benjamin A. Okopnik (Linux Gazette Technical Editor)


        
        
                
___________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html

--
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 Tue Mar 23 2004 - 08:59:21 GMT

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