vtray exported variables Thread last updated on 2004-06-25 09:16:41

Posted by member 167697 on 2004-06-24 10:16:58

In the manual for vtray under exported variables, it says that i have to create dummy variables. Can some one show me an example of how that is done?

Thanks!

Posted by member 37809 on 2004-06-24 10:59:11 link

Define all [Tray]Current[Whatever] as 0 or something else. e.g.
SystrayCurrentX 0
SystrayCurrentY 0
SystrayCurrentWidth 0
SystrayCurrentHeight 0

You only want to do this if you actually use the strings $[Tray]Current[Whatever]$ in your rc files. You only have to do this so that litestep won't give you error messages about these being undefined before the module is actually loaded to provide these evars.

If you use mzscript or xlabel or skinbox or another module that has an escape code for '$' then of course you do not have to make these dummy variables. You can use in your scripts %#[Tray]Current[Whatever]%# which at runtime the %# get substituted with $.

Posted by member 167697 on 2004-06-25 09:16:41 link

Thanks tnl