FVWM: reading a split configuration file

2013-12-05 Thread lee
Hi, what would be the best way to read configuration file snippets from a directory or from various directories? Currently I have ~/.fvwm/.fvwm2rc to start with and statements in it like , | [...] | Read fvwm-colours.fvwm | Read fvwm-desks.fvwm | Read fvwm-menustyle.fvwm | [...] ` Wha

Re: FVWM: reading a split configuration file

2013-12-05 Thread bastian-fvwm-org-20121105
On 05Dec13 11:00 +0100, lee wrote: > | PipeRead 'for i in /bin/ls $HOME/.fvwm/*.fvwm; do echo Read $i; done' > > which seemed to read the contents of an executable file and tried to > execute whatever it read as commands. That appears to be way too > dangerous to use. It reads /bin/ls as input f

Re: FVWM: reading a split configuration file

2013-12-05 Thread Stuart Longland
On 05/12/13 20:45, bastian-fvwm-org-20121...@t6l.de wrote: > > If you need alphabetical order try: > PipeRead 'for i in $(echo $HOME/.fvwm/*.fvwm | sort) ; do echo Read $i; done' Or even: PipeRead `ls -1 $HOME/.fvwm/*.fvwm | while read i; do echo Read $i; done` More than one way to skin this cat

FVWM: Launching Applications/Configuration Question

2013-12-05 Thread James Griffin
I've got a load of functions defined in my configuration file using DestroyFunc/AddToFunc. What I would like to know, is how can use these functions to test if the application in question is already running? In particular, I have an FvwmButtons instance that starts a panel - I wouldn't want mor

Re: FVWM: Launching Applications/Configuration Question

2013-12-05 Thread Thomas Funk
2013/12/5 James Griffin : > I've got a load of functions defined in my configuration file using > DestroyFunc/AddToFunc. What I would like to know, is how can use these > functions to test if the application in question is already running? In > particular, I have an FvwmButtons instance that sta