Discussion:
FVWM: Dynamically Populating FvwmButtons
Jamie Griffin
2014-09-04 13:30:58 UTC
Permalink
Is there a way to populate a set of buttons based on the contents of a file
or directory, perhaps using a default icon and a predefined template of an
FvwmButtons instance?
So, for example, if I had some documents in a directory each the same format
and not likely to change often, can I have a Container filled to a grid of
say 'nxn' depending on the number of documents in the directory which could
be obtained through a script and/or PipeRead and then use a default icon for
each button.
I hope i've explained that clearly enough - is it doable?
Yes, it is. What is it you can't write yourself in order to achieve this?
-- Thomas Adam
It's not so much I can't write it, i'm just considering starting
something I think would work well if set up using that method and wanted
to know if it is worth me trying that approach.

Thanks for the info, I will post again if I have more specific
questions. :-)
Dominik Vogt
2014-09-04 20:03:32 UTC
Permalink
Post by Jamie Griffin
Is there a way to populate a set of buttons based on the contents of a file
or directory, perhaps using a default icon and a predefined template of an
FvwmButtons instance?
So, for example, if I had some documents in a directory each the same format
and not likely to change often, can I have a Container filled to a grid of
say 'nxn' depending on the number of documents in the directory which could
be obtained through a script and/or PipeRead and then use a default icon for
each button.
It's not so much I can't write it, i'm just considering starting
something I think would work well if set up using that method and
wanted to know if it is worth me trying that approach.
Just be careful with the filenames when you read them in via
PipeRead or send them to FvwmButtons with
"SendToModule changebutton". You probably want to forbid a some
characters in file names (single and double quotes, backticks,
backslashes, newlines, dollar characters and maybe other
whitespace. If you pass them to fvwm, bad things could happen.

Ciao

Dominik ^_^ ^_^
--
Dominik Vogt
Loading...