Skip to content

Conversation

bruno-
Copy link
Member

@bruno- bruno- commented Nov 29, 2015

Example use in tmux status line (left or right):

set -g status-right 'Continuum status: #{continuum_status}'

Example styling when continuum is working:

set -g @continuum-status-on-wrap-style '#[fg=green]#{value}#[fg=white]'

another example styling when continuum is NOT working:

set -g @continuum-status-off-wrap-style '#[fg=yellow,bold]#{value}#[fg=white,nobold]'

@michael-coleman
Copy link

Hi Bruno,
I have checked out this branch and tested the changes on My tmux install - it works great, nice job!
Using #{continuum_status} and substituting with the output of the scripts/contiuum_status.sh means I can still use a customised tmux status line, really cool :)
If anyone is interested here is the settings I used to get it working for me.

# inject string interpolations for tmux-continuum
set -g status-right "#[fg=colour238,bg=colour235,nobold,nounderscore,noitalics]#[fg=colour252,bg=colour238] #{continuum_status} #[fg=colour232,bg=colour252] #h "
# set tmux-continuum style wrap
set -g @continuum-status-on-wrap-style '#[fg=colour71]#{value}#[fg=colour252]'
set -g @continuum-status-off-wrap-style '#[fg=yellow,bold]#{value}#[fg=colour252]'

Screenshot: tmux-continuum running with a 5 minute save interval
tmux_status

bruno- pushed a commit that referenced this pull request Dec 26, 2015
#{continuum_status} status line interpolation
@bruno- bruno- merged commit 15649e9 into master Dec 26, 2015
@bruno- bruno- deleted the continuum_status branch December 26, 2015 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants