>From the documentation:

"Variables are directly replaced in the file when parsing. There is no
fancy handling and there are absolutely no plans to change this."

So variables behavior in i3 are more like macros, there is no type behind
and it is good like this.
If you set $var "value" then any subsequent $var will be replace by "value"
with the double quotes.
This is a good choice to keep it simple but I think that the lack of
recursive evaluation is counter intuitive and fail somehow to provide all
the potential of the KISS approach.

Anyway I guess I could try to make a patch for this, it should be trivial.
Michael ?

Cheers,
syl20bnr


On Thu, Aug 1, 2013 at 7:26 PM, <[email protected]> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> the following doesn't work (it doesn't raise a config error, either):
>
> set $mod Mod4
> set $audiomod $mod+Ctrl
> bindsym $audiomod+j exec mpc ...
>
> But the following does:
>
> bindsym $mod+Ctrl+j exec mpc...
>
> Is the former method just not supported (then it should raise a config
> error instead of failing silently) or is there a wrong anywhere else?
>
> [mabe]
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.20 (GNU/Linux)
>
> iQEcBAEBAgAGBQJR+u6MAAoJEJuEULkdE2LBexIH/RYycfY1nZpgUe5xBY9lPzla
> VXT8Rmv5YQaJriBsH8P68SSeud/5f7gWWUEsw+i0ZnAR/0sU3tOqDbqNG8ktuf5K
> 9A7c5vNx9tUpmMyXJq8SGm9Hql0H3J+TS9kdKRQ67QhYqA3DF1vEj7vsP4MmaF5c
> so7ZQJgGyU7vsO70hUeBwkz+4saD/l9e4OzKE9Ard9AgmWv/c/oq5hFBy3OEPtlF
> yGIlAMoIoHi/Niey40u9shOs2B3Iiibj3Ao6a4iYSAmUphMiKhF6F4cH7/pPIoqn
> hecv4q8Zd6SPFhKsOlCHr3goA3U2ctL0DxHDlNz3BWkFadXieBMxN2gwa+RpqZo=
> =GZL9
> -----END PGP SIGNATURE-----
>

Reply via email to