Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segment update time #2

Closed
erikw opened this issue Jun 16, 2012 · 3 comments
Closed

Segment update time #2

erikw opened this issue Jun 16, 2012 · 3 comments

Comments

@erikw
Copy link
Owner

erikw commented Jun 16, 2012

Maybe each segment should have an attribute update_period on how often it should be updated or next_update specifying the next time the script should be run again.

@suvash
Copy link
Contributor

suvash commented Jul 9, 2012

I'd really love to see this implemented. My fan has just started getting audible these days. :)

@LuRsT
Copy link
Contributor

LuRsT commented Sep 11, 2012

I don't think that it's possible to implement something like that, since tmux controls the update period of the whole statusbar, so we can't control left and right individually. If you want less updates, increase the number in set-option -g status-interval.

.tmux.conf
set-option -g status-interval 10

@erikw
Copy link
Owner Author

erikw commented Sep 12, 2012

I think it's possible. Make sure that tmux executes the left and righy
scripts often, say every 2sec, and then the script goes through the a list
of segments and re-execute those who needs to be updated according to their
individual intervalls. The output from the other segments' output can be
cached in a text file.

Erik Westrup
erik.westrup@gmail.com
(+46) 0738-286060 | 2r.se

Lagerbrings väg 8E, 22460 Lund, Sweden

This e-mail is encrypted with 2ROT-13.
Sent from my phone.
On Sep 10, 2012 11:39 PM, "LuRsT" notifications@github.com wrote:

I don't think that it's possible to implement something like that, since
tmux controls the update period of the whole statusbar, so we can't control
left and right individually. If you want less updates, increase the number
in set-option -g status-interval.

.tmux.conf
set-option -g status-interval 10


Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-8448518.

@erikw erikw closed this as completed Apr 2, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants