Nope, jobs run on status-interval and there is no way to run them
immediately at the moment. The best you can do is use run-shell to show
the thing you want to run immediately in the current pane.

I suppose we could make a flag to run-shell to show the first line of
output as a message instead of switching to copy mode.


On Mon, Apr 04, 2011 at 08:18:14AM -0400, Peter John Hartman wrote:
> Hi,
> 
> There is a kind of annoyance in the status bar behaviour.  I have a couple
> scripts run from the status, e.g., battery life and wifi status.  I also
> have 
> 
> set-option -g status-interval 2
> 
> so that these scripts get run fairly often (every 2 seconds).  
> 
> However, since this sucks up battery, I also have C-s bound to set-option -g
> status in order to toggle the status on and off pretty quickly.
> 
> The problem: if I toggle the status on, it will list the *old* information
> for 2 seconds until status-interval is met.  This is annoying because quite
> often I like to quickly hit C-s to see the status info and then hit C-s to 
> toggle status off.  
> 
> So!  Is there some sort of solution?  I thought, maybe, I could do something
> like
> 
> bind C-s set-option -g status-interval 0 \; set-option -g status \; 
> set-option -g status-interval 2
> 
> but this didn't seem to work.
> 
> Peter
> 
> -- 
> sic dicit magister P
> PhD Candidate
> Collaborative Programme in Ancient and Medieval Philosophy
> University of Toronto
> http://individual.utoronto.ca/peterjh
> 
> ------------------------------------------------------------------------------
> Create and publish websites with WebMatrix
> Use the most popular FREE web apps or write code yourself; 
> WebMatrix provides all the features you need to develop and 
> publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
> _______________________________________________
> tmux-users mailing list
> tmux-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tmux-users

------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to