FVWM: Querying colorsets (was: symbolic xpm colors))

From: Mikhael Goikhman <migo_at_homemail.com>
Date: Fri, 16 Jan 2004 00:10:31 +0000

On 15 Jan 2004 19:59:27 +0100, Marcus Lundblad wrote:
>
> By the way, is it possible to "query" FVWM for the current definition of
> coloursets via FvwmCommand? (for use in a script to set the root
> image).

FvwmCommand is not the best way to query colorsets, but tricks like the
following are possible:

  % FvwmCommand 'PipeRead "echo $[fg.cs1] $[bg.cs1] >/tmp/cs1.txt"'
  % cat /tmp/cs1.txt

It is easy to write a module in Perl that queries the colorset definitions
(including image properties that can't be queried ourside of modules).
You just create Colorsets tracker object and it does all the black work
for your module to keep an up to date information about all colorsets.

If you take this path, run "fvwm-perllib man" from a shell, and
"FvwmDebug --xconsole --track Colorsets" from FvwmConsole in 2.5.x.

Regards,
Mikhael.
--
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 Jan 15 2004 - 18:12:47 GMT

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