<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>i3 FAQ - Individual question feed</title><link>https://faq.i3wm.org/questions/</link><description>Frequently asked questions and answers about the i3 window manager</description><atom:link href="http://faq.i3wm.org/feeds/question/7637/" rel="self"></atom:link><language>en</language><copyright>Copyright i3, 2012</copyright><lastBuildDate>Sun, 13 Dec 2015 20:07:26 +0000</lastBuildDate><item><title>I3 config variables</title><link>https://faq.i3wm.org/question/7637/i3-config-variables/</link><description>Hi there,

How does the i3 variables works in config files ?
On my computer `set $emacs_default "emacsclient -c --server-file=default"` doesn't work when I try to bindsym it with an exec :
`binsym $mod+e  exec $emacs_default`, it doesn't run anything.

Also I was wondering if it possible to parametrate a mode with a variable which would be used to run some applications, for instance using same keyinding with different emacs server.

Tell me if it's not clear</description><pubDate>Sat, 12 Dec 2015 14:09:47 +0000</pubDate><guid>https://faq.i3wm.org/question/7637/i3-config-variables/</guid></item><item><title>Comment by nscott32 for &lt;p&gt;Hi there,&lt;/p&gt;

&lt;p&gt;How does the i3 variables works in config files ?
On my computer &lt;code&gt;set $emacs_default "emacsclient -c --server-file=default"&lt;/code&gt; doesn't work when I try to bindsym it with an exec :
&lt;code&gt;binsym $mod+e  exec $emacs_default&lt;/code&gt;, it doesn't run anything.&lt;/p&gt;

&lt;p&gt;Also I was wondering if it possible to parametrate a mode with a variable which would be used to run some applications, for instance using same keyinding with different emacs server.&lt;/p&gt;

&lt;p&gt;Tell me if it's not clear&lt;/p&gt;
</title><link>https://faq.i3wm.org/question/7637/i3-config-variables/?comment=7660#comment-7660</link><description>Wow cool preprocessing is the alternative !</description><pubDate>Sun, 13 Dec 2015 20:07:26 +0000</pubDate><guid>https://faq.i3wm.org/question/7637/i3-config-variables/?comment=7660#comment-7660</guid></item><item><title>Comment by Airblader for &lt;p&gt;Hi there,&lt;/p&gt;

&lt;p&gt;How does the i3 variables works in config files ?
On my computer &lt;code&gt;set $emacs_default "emacsclient -c --server-file=default"&lt;/code&gt; doesn't work when I try to bindsym it with an exec :
&lt;code&gt;binsym $mod+e  exec $emacs_default&lt;/code&gt;, it doesn't run anything.&lt;/p&gt;

&lt;p&gt;Also I was wondering if it possible to parametrate a mode with a variable which would be used to run some applications, for instance using same keyinding with different emacs server.&lt;/p&gt;

&lt;p&gt;Tell me if it's not clear&lt;/p&gt;
</title><link>https://faq.i3wm.org/question/7637/i3-config-variables/?comment=7645#comment-7645</link><description>There's no such parameterized mode, but you could take a look at i3bang which is pretty powerful.</description><pubDate>Sat, 12 Dec 2015 21:58:11 +0000</pubDate><guid>https://faq.i3wm.org/question/7637/i3-config-variables/?comment=7645#comment-7645</guid></item><item><title>Comment by nscott32 for &lt;p&gt;Hi there,&lt;/p&gt;

&lt;p&gt;How does the i3 variables works in config files ?
On my computer &lt;code&gt;set $emacs_default "emacsclient -c --server-file=default"&lt;/code&gt; doesn't work when I try to bindsym it with an exec :
&lt;code&gt;binsym $mod+e  exec $emacs_default&lt;/code&gt;, it doesn't run anything.&lt;/p&gt;

&lt;p&gt;Also I was wondering if it possible to parametrate a mode with a variable which would be used to run some applications, for instance using same keyinding with different emacs server.&lt;/p&gt;

&lt;p&gt;Tell me if it's not clear&lt;/p&gt;
</title><link>https://faq.i3wm.org/question/7637/i3-config-variables/?comment=7644#comment-7644</link><description>Yes it's finally what I adopted, but that force me to do a lot of search and replace when I want to reconfigure.</description><pubDate>Sat, 12 Dec 2015 21:33:25 +0000</pubDate><guid>https://faq.i3wm.org/question/7637/i3-config-variables/?comment=7644#comment-7644</guid></item><item><title>Comment by Airblader for &lt;p&gt;Hi there,&lt;/p&gt;

&lt;p&gt;How does the i3 variables works in config files ?
On my computer &lt;code&gt;set $emacs_default "emacsclient -c --server-file=default"&lt;/code&gt; doesn't work when I try to bindsym it with an exec :
&lt;code&gt;binsym $mod+e  exec $emacs_default&lt;/code&gt;, it doesn't run anything.&lt;/p&gt;

&lt;p&gt;Also I was wondering if it possible to parametrate a mode with a variable which would be used to run some applications, for instance using same keyinding with different emacs server.&lt;/p&gt;

&lt;p&gt;Tell me if it's not clear&lt;/p&gt;
</title><link>https://faq.i3wm.org/question/7637/i3-config-variables/?comment=7642#comment-7642</link><description>Note that quotes are not necessary in variable assignments. If you use quoted, the content of your variable will in fact contain those quotes.</description><pubDate>Sat, 12 Dec 2015 20:12:02 +0000</pubDate><guid>https://faq.i3wm.org/question/7637/i3-config-variables/?comment=7642#comment-7642</guid></item><item><title>Comment by i3convert for &lt;p&gt;Hi there,&lt;/p&gt;

&lt;p&gt;How does the i3 variables works in config files ?
On my computer &lt;code&gt;set $emacs_default "emacsclient -c --server-file=default"&lt;/code&gt; doesn't work when I try to bindsym it with an exec :
&lt;code&gt;binsym $mod+e  exec $emacs_default&lt;/code&gt;, it doesn't run anything.&lt;/p&gt;

&lt;p&gt;Also I was wondering if it possible to parametrate a mode with a variable which would be used to run some applications, for instance using same keyinding with different emacs server.&lt;/p&gt;

&lt;p&gt;Tell me if it's not clear&lt;/p&gt;
</title><link>https://faq.i3wm.org/question/7637/i3-config-variables/?comment=7641#comment-7641</link><description>It's probably an escaping issue. Did you try putting your command in the script and just running the script instead?</description><pubDate>Sat, 12 Dec 2015 18:49:34 +0000</pubDate><guid>https://faq.i3wm.org/question/7637/i3-config-variables/?comment=7641#comment-7641</guid></item></channel></rss>