I've been trying this for several days now and I just cant get it to
work, how do you get your machines uptime in the status bar please?

I've tried - #set -g status-left '#[fg=green]#H #[fg=black]•
#[fg=green,bright]###(uptime|awk '{split(substr($0, index($0, "load")),
a, ":"); print a[2]})'#[default]'

and 

set -g status-right '#[fg=red,bg=default]#(uptime) #[fg=blue]%a
%d-%m-%Y %H:%M:%S'

What I'm looking for is just a straight uptime of days:hours:minutes,
which will be updated every 30 seconds with the normal statusbar update.

Can anyone help me out please?

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk/index.html
efever = http://www.efever.blogspot.com/
efever = http://sharon04.livejournal.com/
Debian testing, Fluxbox 1.3.5, LibreOffice 4.0.3.3
Registered Linux user 334501 

Attachment: signature.asc
Description: PGP signature

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to