I have not been trixing with my config for a long while now.- but as i feel a need to make the system work better i finally took myself time to create a new config file, but i have lost some of the few things i learned the last time i made my config-and its not easy to me to read the fine manual all over again (i have a dissorder), so please escuse for theese simple questions.
Can someone tell me how to call Restart in a proper way.
Here it’s newer gets executed.
And that gave the result that i got stuck only using one of the config files (variable newer refreshed.?).
What i need is some advice how to
Clean up the environment variable(s).
help find the error if its not with not cleaned variable.
and
3, How to call restart with fixed parameters (eg, the parameter Read - for the config file)
I am not sure what are you trying to do here. But, SetEnv only accepts two arguments: a var name and a text string (which can also be provided by expanding another variable. If there are white spaces, then you need to quote the second argument.
You don’t need RestartFunction anymore, just use StartFunction and check for Init or Restart if you really need that.
For example:
AddToFunc StartFunction I Test (Init) do_foo
AddToFunc StartFunction I Test (Restart) do_bar
Thomas Adam wrote about this (amongst many other things) some time ago:
Besides that, I would use another approach. Just use a symlink. ~/.fvwm/config should be a symlink, update it to point to any config you want to try and then just restart. It’s simpler. You can parametrize the thing a bit:
If we assume that the file i have my configuration in is named .config
Is it possible to send
Read /path/.config
as a parameter to the restart command.?
(I want to ‘inherit’ some settings (obs .- the quotes - i know its not ‘true’ inherit’) from my .config .?
As i do for now is that i put that read statement in each config file i use, and i feel that that it is not the most elegante solution.