Display additionnal info while run tmux in tty

This commit is contained in:
gardouille 2016-01-29 11:12:25 +01:00
parent 1ee3ebca8a
commit b62b5cc1f6
1 changed files with 9 additions and 0 deletions

View File

@ -48,6 +48,15 @@ set -g pane-border-fg white
## Panel actif
set -g pane-active-border-fg "${debianred}"
# right statusbar
# %H:%M:%S : Affiche de l'heure (actualisation lors de manipulation ou en fonction de la valeur de status-interval)
set -g status-right "⚡[#[fg="${darkred}",bright]%H:%M:%S#[default]]"
# Additionnal info if no display available (aka tty)
# #H: hostname
# #(acpi | cut -d \" \" -f4): display percentage of battery
if '[ -z "$DISPLAY" ]' 'set -g status-right "#H #(acpi | cut -d \" \" -f4) [#[fg="${darkred}",bright]%H:%M:%S#[default]]"'
### }}}
### keybindings {{{