<?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/138/" rel="self"></atom:link><language>en</language><copyright>Copyright i3, 2012</copyright><lastBuildDate>Thu, 26 Sep 2013 16:45:57 +0000</lastBuildDate><item><title>Multiple scratchpad</title><link>https://faq.i3wm.org/question/138/multiple-scratchpad/</link><description>Hi,
I use the scartchpad to quickly show my music player, but is it possible to have different scratchpad binded to a key. For example Super+m open the music player, Super+n open my mail client, etc.</description><pubDate>Sun, 17 Jun 2012 16:37:03 +0000</pubDate><guid>https://faq.i3wm.org/question/138/multiple-scratchpad/</guid></item><item><title>Answer by Michael for &lt;p&gt;Hi,
I use the scartchpad to quickly show my music player, but is it possible to have different scratchpad binded to a key. For example Super+m open the music player, Super+n open my mail client, etc.&lt;/p&gt;
 </title><link>https://faq.i3wm.org/question/138/multiple-scratchpad/?answer=139#post-id-139</link><description>Yes, it is.

I use a config like this:

    bindsym Mod4+c [instance="cmus"] scratchpad show
    bindsym Mod4+n [instance="mail"] scratchpad show

To start terminals which fulfill these criteria, run:

    urxvt -name cmus
    urxvt -name mail

And move them to the scratchpad (you could automate this step using `for_window`).</description><pubDate>Sun, 17 Jun 2012 17:19:51 +0000</pubDate><guid>https://faq.i3wm.org/question/138/multiple-scratchpad/?answer=139#post-id-139</guid></item><item><title>Comment by Michael for &lt;p&gt;Yes, it is.&lt;/p&gt;

&lt;p&gt;I use a config like this:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;bindsym Mod4+c [instance="cmus"] scratchpad show
bindsym Mod4+n [instance="mail"] scratchpad show
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;To start terminals which fulfill these criteria, run:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;urxvt -name cmus
urxvt -name mail
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;And move them to the scratchpad (you could automate this step using &lt;code&gt;for_window&lt;/code&gt;).&lt;/p&gt;
</title><link>https://faq.i3wm.org/question/138/multiple-scratchpad/?comment=2605#comment-2605</link><description>@teto: Pressing Mod4+c repeatedly should hide, then show the scratchpad window. If not, please report a bug at http://bugs.i3wm.org/</description><pubDate>Thu, 26 Sep 2013 16:45:57 +0000</pubDate><guid>https://faq.i3wm.org/question/138/multiple-scratchpad/?comment=2605#comment-2605</guid></item><item><title>Comment by teto for &lt;p&gt;Yes, it is.&lt;/p&gt;

&lt;p&gt;I use a config like this:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;bindsym Mod4+c [instance="cmus"] scratchpad show
bindsym Mod4+n [instance="mail"] scratchpad show
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;To start terminals which fulfill these criteria, run:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;urxvt -name cmus
urxvt -name mail
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;And move them to the scratchpad (you could automate this step using &lt;code&gt;for_window&lt;/code&gt;).&lt;/p&gt;
</title><link>https://faq.i3wm.org/question/138/multiple-scratchpad/?comment=1675#comment-1675</link><description>but then with i3 4.5.1 if I do Mod4+c and Mod4+n I keep alterning the focus between the 2 scratch windows without being able to hide them again. Is that normal ?</description><pubDate>Sun, 21 Apr 2013 11:35:28 +0000</pubDate><guid>https://faq.i3wm.org/question/138/multiple-scratchpad/?comment=1675#comment-1675</guid></item><item><title>Comment by sysadamin for &lt;p&gt;Yes, it is.&lt;/p&gt;

&lt;p&gt;I use a config like this:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;bindsym Mod4+c [instance="cmus"] scratchpad show
bindsym Mod4+n [instance="mail"] scratchpad show
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;To start terminals which fulfill these criteria, run:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;urxvt -name cmus
urxvt -name mail
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;And move them to the scratchpad (you could automate this step using &lt;code&gt;for_window&lt;/code&gt;).&lt;/p&gt;
</title><link>https://faq.i3wm.org/question/138/multiple-scratchpad/?comment=143#comment-143</link><description>dang! i never even thought of that. dig it!</description><pubDate>Tue, 19 Jun 2012 04:25:18 +0000</pubDate><guid>https://faq.i3wm.org/question/138/multiple-scratchpad/?comment=143#comment-143</guid></item><item><title>Comment by yoav for &lt;p&gt;Yes, it is.&lt;/p&gt;

&lt;p&gt;I use a config like this:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;bindsym Mod4+c [instance="cmus"] scratchpad show
bindsym Mod4+n [instance="mail"] scratchpad show
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;To start terminals which fulfill these criteria, run:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;urxvt -name cmus
urxvt -name mail
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;And move them to the scratchpad (you could automate this step using &lt;code&gt;for_window&lt;/code&gt;).&lt;/p&gt;
</title><link>https://faq.i3wm.org/question/138/multiple-scratchpad/?comment=2567#comment-2567</link><description>@Michael, as @teto mentioned, this doesn't really solve the problem -- only one scratchpad can be visible at a time, otherwise it becomes chaotic.  Is there a way to have different scratchpads really independent from each other? (as an example use-case, I have one for htop and one for ipython).</description><pubDate>Mon, 23 Sep 2013 00:49:24 +0000</pubDate><guid>https://faq.i3wm.org/question/138/multiple-scratchpad/?comment=2567#comment-2567</guid></item><item><title>Answer by gehidore for &lt;p&gt;Hi,
I use the scartchpad to quickly show my music player, but is it possible to have different scratchpad binded to a key. For example Super+m open the music player, Super+n open my mail client, etc.&lt;/p&gt;
 </title><link>https://faq.i3wm.org/question/138/multiple-scratchpad/?answer=1744#post-id-1744</link><description>@teto, solution for ya since I had the same obnoxious issue as I like to run 3 or 4 terminals in scratchpads...

here's my bindsym for three of my scratchpadded items.

    # quake style terminals
    # top
    exec .local/bin/urxvtq scratchpad_urxvt_top 180x28
    for_window [instance="scratchpad_urxvt_top"] move to scratchpad, border 1pixel
    bindsym Mod1+i exec .local/bin/urxvtq scratchpad_urxvt_top 180x28, [instance="scratchpad_urxvt_left"] move to scratchpad, border 1pixel, [instance="scratchpad_urxvt_bottom"] move to scratchpad, border 1pixel, [instance="scratchpad_urxvt_top"] scratchpad show, move position 45px 0px
    
    # left
    exec .local/bin/urxvtq scratchpad_urxvt_left 100x50
    for_window [instance="scratchpad_urxvt_left"] move to scratchpad, border 1pixel
    bindsym Mod1+a exec .local/bin/urxvtq scratchpad_urxvt_left 100x50, [instance="scratchpad_urxvt_top"] move to scratchpad, border 1pixel, [instance="scratchpad_urxvt_bottom"] move to scratchpad, border 1pixel, [instance="scratchpad_urxvt_left"] scratchpad show, move position 0px 25px
    
    
    # bottom
    exec .local/bin/urxvtq scratchpad_urxvt_bottom 180x28 "journalctl -f --full"
    for_window [instance="scratchpad_urxvt_bottom"] move to scratchpad, border 1pixel
    bindsym Mod1+j exec .local/bin/urxvtq scratchpad_urxvt_bottom 180x28 "journalctl -f --full", [instance="scratchpad_urxvt_left"] move to scratchpad, border 1pixel,                                [instance="scratchpad_urxvt_top"] move to scratchpad, border 1pixel, [instance="scratchpad_urxvt_bottom"] scratchpad show, move position 45px 350px

The key here is adding the extra:

    [instance="item_a"] move to scratchpad, border 1pixel,

**BEFORE** you trigger the show event. Mine is setup currently to hide either of the other two and then show the selected scratchpad!

</description><pubDate>Thu, 02 May 2013 19:55:29 +0000</pubDate><guid>https://faq.i3wm.org/question/138/multiple-scratchpad/?answer=1744#post-id-1744</guid></item><item><title>Comment by teto for &lt;p&gt;&lt;a href="/users/474/teto/"&gt;@teto&lt;/a&gt;, solution for ya since I had the same obnoxious issue as I like to run 3 or 4 terminals in scratchpads...&lt;/p&gt;

&lt;p&gt;here's my bindsym for three of my scratchpadded items.&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;# quake style terminals
# top
exec .local/bin/urxvtq scratchpad_urxvt_top 180x28
for_window [instance="scratchpad_urxvt_top"] move to scratchpad, border 1pixel
bindsym Mod1+i exec .local/bin/urxvtq scratchpad_urxvt_top 180x28, [instance="scratchpad_urxvt_left"] move to scratchpad, border 1pixel, [instance="scratchpad_urxvt_bottom"] move to scratchpad, border 1pixel, [instance="scratchpad_urxvt_top"] scratchpad show, move position 45px 0px

# left
exec .local/bin/urxvtq scratchpad_urxvt_left 100x50
for_window [instance="scratchpad_urxvt_left"] move to scratchpad, border 1pixel
bindsym Mod1+a exec .local/bin/urxvtq scratchpad_urxvt_left 100x50, [instance="scratchpad_urxvt_top"] move to scratchpad, border 1pixel, [instance="scratchpad_urxvt_bottom"] move to scratchpad, border 1pixel, [instance="scratchpad_urxvt_left"] scratchpad show, move position 0px 25px


# bottom
exec .local/bin/urxvtq scratchpad_urxvt_bottom 180x28 "journalctl -f --full"
for_window [instance="scratchpad_urxvt_bottom"] move to scratchpad, border 1pixel
bindsym Mod1+j exec .local/bin/urxvtq scratchpad_urxvt_bottom 180x28 "journalctl -f --full", [instance="scratchpad_urxvt_left"] move to scratchpad, border 1pixel,                                [instance="scratchpad_urxvt_top"] move to scratchpad, border 1pixel, [instance="scratchpad_urxvt_bottom"] scratchpad show, move position 45px 350px
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The key here is adding the extra:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;[instance="item_a"] move to scratchpad, border 1pixel,
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;BEFORE&lt;/strong&gt; you trigger the show event. Mine is setup currently to hide either of the other two and then show the selected scratchpad!&lt;/p&gt;
</title><link>https://faq.i3wm.org/question/138/multiple-scratchpad/?comment=1809#comment-1809</link><description>good idea I think you can further refine it by using regexp. something like for [instance="scratchpad*"] move ...; [instance ... ] show .... I believe having scratchpads behave as workspaces could be nice. I mean having several scratchpads, except windows there would be in floating mode.</description><pubDate>Tue, 14 May 2013 15:50:50 +0000</pubDate><guid>https://faq.i3wm.org/question/138/multiple-scratchpad/?comment=1809#comment-1809</guid></item></channel></rss>