--On Monday, March 22, 2004 09:15:11 +0000 Thomas Adam <[EMAIL PROTECTED]> wrote:
> --- Tavis Ormandy <[EMAIL PROTECTED]> wrote: > >> >> --On Monday, March 22, 2004 04:09:29 +0000 Ukpong Ukpong >> <[EMAIL PROTECTED]> 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 :) -- ------------------------------------- [EMAIL PROTECTED] | finger me for my gpg key. -------------------------------------------------------
pgp00000.pgp
Description: PGP signature
