* Thomas Adam <tho...@xteddy.org> [120702 15:46]:
> On 2 July 2012 18:38, John Magolske <listm...@b79.net> wrote:
> > With #N shown here to represent "total number of windows in a session"
> 
> Use tmux from SVN trunk, and then read up on "FORMATS", specifically
> "#{session_windows}".

I'm running version 1.6 (installed from the Debian repositories), and
had read the FORMATS section. I just fiddled with "#{session_windows}"
a bit more and came up with this:

set -g status-left " #I/#(tmux list-windows -F \"#{session_windows}\") : #W "

Which does what I want, but it seems to get confused if more than one
session is running. Also, the number of windows displayed won't always
be up-to-date, lagging by up to 15 seconds or whatever status-interval
is set to. I'll need to test this some more, but I think a solution to
both of these problems would be to re-map all commands that create or
kill windows and tag a "refresh-client -S" on to the end of them.

Regards,

John

-- 
John Magolske
http://B79.net/contact

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to