2016-01-28 23:55:11 +01:00
|
|
|
|
|
2016-01-28 01:11:03 +01:00
|
|
|
|
### statusbar {{{
|
2015-09-22 15:35:57 +02:00
|
|
|
|
|
2016-01-28 23:55:11 +01:00
|
|
|
|
# forground color
|
|
|
|
|
set -g status-fg "${debianred}"
|
|
|
|
|
# background color
|
2015-09-22 15:35:57 +02:00
|
|
|
|
set -g status-bg black
|
|
|
|
|
|
|
|
|
|
## Terminaux par défaut
|
|
|
|
|
# Window foreground color
|
2016-01-28 23:55:11 +01:00
|
|
|
|
set-window-option -g window-status-fg "${debianred}"
|
2015-09-22 15:35:57 +02:00
|
|
|
|
# Window background color
|
2016-01-28 23:55:11 +01:00
|
|
|
|
set-window-option -g window-status-bg "${darkgrey}"
|
2015-09-22 15:35:57 +02:00
|
|
|
|
# Attribut
|
|
|
|
|
#bright/bold:
|
|
|
|
|
#dim:
|
|
|
|
|
#underscore:
|
|
|
|
|
#blink: "clignotant"?
|
|
|
|
|
#reverse: reverse background and foreground colors
|
|
|
|
|
#hidden:
|
|
|
|
|
#italics:
|
|
|
|
|
set-window-option -g window-status-attr bold
|
|
|
|
|
|
|
|
|
|
## Terminal actif
|
|
|
|
|
# Current windows foreground color
|
|
|
|
|
set-window-option -g window-status-current-fg black
|
|
|
|
|
# Current windows background color
|
2016-01-28 23:55:11 +01:00
|
|
|
|
set-window-option -g window-status-current-bg "${debianred}"
|
2015-09-22 15:35:57 +02:00
|
|
|
|
# Attribut (cf ci-dessus pour la liste)
|
|
|
|
|
set-window-option -g window-status-current-attr dim
|
|
|
|
|
|
2016-01-29 00:18:08 +01:00
|
|
|
|
# selection
|
|
|
|
|
set -wg mode-style bg="${debianred}",fg=white,bold
|
|
|
|
|
|
|
|
|
|
set -g clock-mode-colour "${debianred}"
|
|
|
|
|
|
2015-09-22 15:35:57 +02:00
|
|
|
|
## Terminal avec notification
|
|
|
|
|
# Couleur du foreground
|
|
|
|
|
# Couleur du background
|
|
|
|
|
# Attribut
|
|
|
|
|
#setw -g window-status-alert-attr default
|
|
|
|
|
#setw -g window-status-alert-fg red
|
|
|
|
|
#setw -g window-status-alert-bg default
|
|
|
|
|
|
|
|
|
|
## Panel par défaut
|
|
|
|
|
set -g pane-border-fg white
|
|
|
|
|
|
|
|
|
|
## Panel actif
|
2016-01-28 23:55:11 +01:00
|
|
|
|
set -g pane-active-border-fg "${debianred}"
|
2015-09-22 15:35:57 +02:00
|
|
|
|
|
2016-01-29 11:12:25 +01:00
|
|
|
|
# right statusbar
|
|
|
|
|
# %H:%M:%S : Affiche de l'heure (actualisation lors de manipulation ou en fonction de la valeur de status-interval)
|
2017-01-17 18:30:24 +01:00
|
|
|
|
#set -g status-right "⚡[#[fg="${darkred}",bright]%H:%M:%S#[default]]"
|
2016-01-29 11:12:25 +01:00
|
|
|
|
|
|
|
|
|
# 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]]"'
|
|
|
|
|
|
2016-01-28 01:11:03 +01:00
|
|
|
|
### }}}
|
|
|
|
|
|
|
|
|
|
### keybindings {{{
|
|
|
|
|
|
2015-09-22 15:35:57 +02:00
|
|
|
|
## Prefix key (default: C-b)
|
|
|
|
|
# Use C-a as a prefix-key only on local session
|
|
|
|
|
unbind C-b
|
|
|
|
|
set -g prefix C-a
|
|
|
|
|
bind a send-prefix
|
2016-01-28 01:11:03 +01:00
|
|
|
|
|
2017-08-04 14:10:33 +02:00
|
|
|
|
# Copy-mode
|
|
|
|
|
bind-key -T copy-mode-vi 'v' send -X begin-selection
|
|
|
|
|
bind-key -T copy-mode-vi 'y' send -X copy-selection-and-cancel
|
|
|
|
|
|
2016-01-28 01:11:03 +01:00
|
|
|
|
### }}}
|