<?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/820/" rel="self"></atom:link><language>en</language><copyright>Copyright i3, 2012</copyright><lastBuildDate>Thu, 03 Apr 2014 11:39:11 +0000</lastBuildDate><item><title>Pause-functionality with external script in i3status</title><link>https://faq.i3wm.org/question/820/pause-functionality-with-external-script-in-i3status/</link><description>When using the default i3status with a hidden i3bar the execution of the status command is paused as long as the bar is not visible. Since I wanted to have my Dropbox state in the bar I am now using a slightly modified version of the default [wrapper.py](http://code.stapelberg.de/git/i3status/tree/contrib/wrapper.py).

Problem: It seems like only the wrapper is paused. When I show the bar again after it was hidden for a while it first shows the time when it was last hidden. Then it rapidly updates until it reaches the current state.

So my question is: Is there a way to either make it work or disable the pausing so  the current state is instantly shown?


My current i3config bar section is:

    bar {
       mode hide
       modifier Mod1
       status_command i3status | ~/.config/i3status/wrapper.py
    }</description><pubDate>Mon, 26 Nov 2012 14:01:39 +0000</pubDate><guid>https://faq.i3wm.org/question/820/pause-functionality-with-external-script-in-i3status/</guid></item><item><title>Answer by Michael for &lt;p&gt;When using the default i3status with a hidden i3bar the execution of the status command is paused as long as the bar is not visible. Since I wanted to have my Dropbox state in the bar I am now using a slightly modified version of the default &lt;a href="http://code.stapelberg.de/git/i3status/tree/contrib/wrapper.py"&gt;wrapper.py&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Problem: It seems like only the wrapper is paused. When I show the bar again after it was hidden for a while it first shows the time when it was last hidden. Then it rapidly updates until it reaches the current state.&lt;/p&gt;

&lt;p&gt;So my question is: Is there a way to either make it work or disable the pausing so  the current state is instantly shown?&lt;/p&gt;

&lt;p&gt;My current i3config bar section is:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;bar {
   mode hide
   modifier Mod1
   status_command i3status | ~/.config/i3status/wrapper.py
}
&lt;/code&gt;&lt;/pre&gt;
 </title><link>https://faq.i3wm.org/question/820/pause-functionality-with-external-script-in-i3status/?answer=821#post-id-821</link><description>In the git version of i3, you can specify the signal numbers for hide/show: http://build.i3wm.org/docs/i3bar-protocol.html

You could also fix the wrapper script so that it passes the signal along to i3status, I suppose.</description><pubDate>Mon, 26 Nov 2012 14:10:08 +0000</pubDate><guid>https://faq.i3wm.org/question/820/pause-functionality-with-external-script-in-i3status/?answer=821#post-id-821</guid></item><item><title>Comment by jacob11235 for &lt;p&gt;In the git version of i3, you can specify the signal numbers for hide/show: &lt;a href="http://build.i3wm.org/docs/i3bar-protocol.html"&gt;http://build.i3wm.org/docs/i3bar-prot...&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You could also fix the wrapper script so that it passes the signal along to i3status, I suppose.&lt;/p&gt;
</title><link>https://faq.i3wm.org/question/820/pause-functionality-with-external-script-in-i3status/?comment=822#comment-822</link><description>Thanks, I'll have a look at signal handling in Python. How could I fix this by changing the signal numbers?</description><pubDate>Mon, 26 Nov 2012 16:10:11 +0000</pubDate><guid>https://faq.i3wm.org/question/820/pause-functionality-with-external-script-in-i3status/?comment=822#comment-822</guid></item><item><title>Comment by Michael for &lt;p&gt;In the git version of i3, you can specify the signal numbers for hide/show: &lt;a href="http://build.i3wm.org/docs/i3bar-protocol.html"&gt;http://build.i3wm.org/docs/i3bar-prot...&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You could also fix the wrapper script so that it passes the signal along to i3status, I suppose.&lt;/p&gt;
</title><link>https://faq.i3wm.org/question/820/pause-functionality-with-external-script-in-i3status/?comment=825#comment-825</link><description>By just specifying SIGUSR1 as start/stop signal and then not handle it specially in the wrapper.</description><pubDate>Tue, 27 Nov 2012 09:50:22 +0000</pubDate><guid>https://faq.i3wm.org/question/820/pause-functionality-with-external-script-in-i3status/?comment=825#comment-825</guid></item><item><title>Comment by Julien Jehannet for &lt;p&gt;In the git version of i3, you can specify the signal numbers for hide/show: &lt;a href="http://build.i3wm.org/docs/i3bar-protocol.html"&gt;http://build.i3wm.org/docs/i3bar-prot...&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You could also fix the wrapper script so that it passes the signal along to i3status, I suppose.&lt;/p&gt;
</title><link>https://faq.i3wm.org/question/820/pause-functionality-with-external-script-in-i3status/?comment=3616#comment-3616</link><description>I expect SIGCONT to be more convenient (for example with conky). Be sure to get the exact sigvalue with "kill --table" </description><pubDate>Thu, 03 Apr 2014 11:39:11 +0000</pubDate><guid>https://faq.i3wm.org/question/820/pause-functionality-with-external-script-in-i3status/?comment=3616#comment-3616</guid></item></channel></rss>