<?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/3842/" rel="self"></atom:link><language>en</language><copyright>Copyright i3, 2012</copyright><lastBuildDate>Mon, 19 May 2014 18:18:16 +0000</lastBuildDate><item><title>Kill all the windows in a given workspace</title><link>https://faq.i3wm.org/question/3842/kill-all-the-windows-in-a-given-workspace/</link><description>Is it possible to kill all the windows in a given workspace. Obviously the command below does not work.

    bindsym XF86Favorites exec --no-startup-id i3-msg 'workspace 1; kill ???'

Is it possible to catch all the windows in a workspace and kill them without identifying each of them separately.

Thank you
Marcin</description><pubDate>Sun, 18 May 2014 12:42:18 +0000</pubDate><guid>https://faq.i3wm.org/question/3842/kill-all-the-windows-in-a-given-workspace/</guid></item><item><title>Comment by Adaephon for &lt;p&gt;Is it possible to kill all the windows in a given workspace. Obviously the command below does not work.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;bindsym XF86Favorites exec --no-startup-id i3-msg 'workspace 1; kill ???'
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Is it possible to catch all the windows in a workspace and kill them without identifying each of them separately.&lt;/p&gt;

&lt;p&gt;Thank you
Marcin&lt;/p&gt;
</title><link>https://faq.i3wm.org/question/3842/kill-all-the-windows-in-a-given-workspace/?comment=3848#comment-3848</link><description>There is no need to run `i3-msg` through `exec`. `i3-msg` takes exactly the arguments used with `bindsym`: Instead of `bindsym KEY exec i3-msg 'COMMAND1; COMMAND2'` just use `bindsym KEY COMMAND1; COMMAND2`.</description><pubDate>Mon, 19 May 2014 08:50:49 +0000</pubDate><guid>https://faq.i3wm.org/question/3842/kill-all-the-windows-in-a-given-workspace/?comment=3848#comment-3848</guid></item><item><title>Comment by sycamorex for &lt;p&gt;Is it possible to kill all the windows in a given workspace. Obviously the command below does not work.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;bindsym XF86Favorites exec --no-startup-id i3-msg 'workspace 1; kill ???'
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Is it possible to catch all the windows in a workspace and kill them without identifying each of them separately.&lt;/p&gt;

&lt;p&gt;Thank you
Marcin&lt;/p&gt;
</title><link>https://faq.i3wm.org/question/3842/kill-all-the-windows-in-a-given-workspace/?comment=3850#comment-3850</link><description>OK. Thank you</description><pubDate>Mon, 19 May 2014 18:18:16 +0000</pubDate><guid>https://faq.i3wm.org/question/3842/kill-all-the-windows-in-a-given-workspace/?comment=3850#comment-3850</guid></item><item><title>Answer by phairland for &lt;p&gt;Is it possible to kill all the windows in a given workspace. Obviously the command below does not work.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;bindsym XF86Favorites exec --no-startup-id i3-msg 'workspace 1; kill ???'
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Is it possible to catch all the windows in a workspace and kill them without identifying each of them separately.&lt;/p&gt;

&lt;p&gt;Thank you
Marcin&lt;/p&gt;
 </title><link>https://faq.i3wm.org/question/3842/kill-all-the-windows-in-a-given-workspace/?answer=3847#post-id-3847</link><description>Question is answered here: https://faq.i3wm.org/question/2865/is-there-a-way-to-killreset-a-whole-workspace</description><pubDate>Mon, 19 May 2014 06:37:13 +0000</pubDate><guid>https://faq.i3wm.org/question/3842/kill-all-the-windows-in-a-given-workspace/?answer=3847#post-id-3847</guid></item></channel></rss>