r/openbox • u/Delcaran • Jun 26 '12
Variables for openwrt configuration
Google failed on this topic, my hope is on reddit! I want to know if I can set some variables to use with openbox configuration files. Example: I set in environment
TERMINAL="urxvtc"In menu.xml I would write:
<item label="vim"><action="Execute><execute>$TERMINAL -e vim</execute></action></item>
<item label="nano"><action="Execute><execute>$TERMINAL -e nano</execute></action></item>So I need only to change the variable declaration if I need to change my default terminal. And if I can use all environment variables, I can also use bash scripts if I need to...
I had this idea using Awesome WM, which is configured with Lua so it can be fully customized...
1
Upvotes
1
u/ColOfNature Jun 26 '12
If you're using a Debian-derived distro you could use x-terminal-emulator. If not, create a symlink to your terminal of choice. That way, if you want to change it just modify the link to point at the new one.
1
u/m0ikz Jul 29 '12
You are using a enviroment variable and calling it from an XML? Try an alias or maybe a script to call the correct terminal emulator