Re: FVWM: Finding the number of desktops

From: Tavis Ormandy <taviso_at_sdf.lonestar.org>
Date: Mon, 22 Mar 2004 09:34:35 +0000

--On Monday, March 22, 2004 09:15:11 +0000 Thomas Adam
<thomas_adam16_at_yahoo.com> wrote:

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

you can get the desktopsize by expanding $[desk.pagesx] and $[desk.pagesy],
but thats number of pages, not desktops :)

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

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