<?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/5390/" rel="self"></atom:link><language>en</language><copyright>Copyright i3, 2012</copyright><lastBuildDate>Tue, 27 Jan 2015 06:50:42 +0000</lastBuildDate><item><title>Application specific bindings</title><link>https://faq.i3wm.org/question/5390/application-specific-bindings/</link><description>Is there a way to have custom bindings specific to some application. E.g.:
    
    # bindsym --release F4 [class="Anki"] exec --no-startup-id xdotool key --clearmodifiers Ctrl+z

To bind F4 to Ctrl+z in Anki, but nowhere else (this is just an example). This is meant for the applications that themselves do not offer a way to change bindings.

Thank you very much!
</description><pubDate>Sun, 25 Jan 2015 21:02:51 +0000</pubDate><guid>https://faq.i3wm.org/question/5390/application-specific-bindings/</guid></item><item><title>Comment by rds for &lt;p&gt;Is there a way to have custom bindings specific to some application. E.g.:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;# bindsym --release F4 [class="Anki"] exec --no-startup-id xdotool key --clearmodifiers Ctrl+z
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;To bind F4 to Ctrl+z in Anki, but nowhere else (this is just an example). This is meant for the applications that themselves do not offer a way to change bindings.&lt;/p&gt;

&lt;p&gt;Thank you very much!&lt;/p&gt;
</title><link>https://faq.i3wm.org/question/5390/application-specific-bindings/?comment=5392#comment-5392</link><description>Right... Firefox wasn't the best example, sorry. I'm asking because many appllications do not have a direct way to change their bindings.</description><pubDate>Mon, 26 Jan 2015 17:22:27 +0000</pubDate><guid>https://faq.i3wm.org/question/5390/application-specific-bindings/?comment=5392#comment-5392</guid></item><item><title>Comment by Adaephon for &lt;p&gt;Is there a way to have custom bindings specific to some application. E.g.:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;# bindsym --release F4 [class="Anki"] exec --no-startup-id xdotool key --clearmodifiers Ctrl+z
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;To bind F4 to Ctrl+z in Anki, but nowhere else (this is just an example). This is meant for the applications that themselves do not offer a way to change bindings.&lt;/p&gt;

&lt;p&gt;Thank you very much!&lt;/p&gt;
</title><link>https://faq.i3wm.org/question/5390/application-specific-bindings/?comment=5391#comment-5391</link><description>Wouldn't it be easier to just [redefine the key binding in Firefox](http://www.cnet.com/how-to/how-to-customize-firefox-keyboard-shortcuts/)? </description><pubDate>Mon, 26 Jan 2015 12:13:08 +0000</pubDate><guid>https://faq.i3wm.org/question/5390/application-specific-bindings/?comment=5391#comment-5391</guid></item><item><title>Comment by Adaephon for &lt;p&gt;Is there a way to have custom bindings specific to some application. E.g.:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;# bindsym --release F4 [class="Anki"] exec --no-startup-id xdotool key --clearmodifiers Ctrl+z
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;To bind F4 to Ctrl+z in Anki, but nowhere else (this is just an example). This is meant for the applications that themselves do not offer a way to change bindings.&lt;/p&gt;

&lt;p&gt;Thank you very much!&lt;/p&gt;
</title><link>https://faq.i3wm.org/question/5390/application-specific-bindings/?comment=5395#comment-5395</link><description>*i3* criteria do not work for `exec`, so this does not work here. You could write a script that does things depending on the current window (`xprop -id $(xdotool getwindowfocus)`). But if you send a key to which it is bound, you will probably run into a recursion.</description><pubDate>Tue, 27 Jan 2015 06:50:42 +0000</pubDate><guid>https://faq.i3wm.org/question/5390/application-specific-bindings/?comment=5395#comment-5395</guid></item></channel></rss>