tmux/tmux.conf.local

81 lines
2.1 KiB
Plaintext

### statusbar {{{
# Attribut list {{{
## bright/bold:
## dim:
## underscore:
## blink: clignotant
## reverse: reverse background and foreground colors
## hidden:
## italics:
## overline: Needs Smol extension, see the manual
## strikethrough: barré
## double-underscore:
## curly-underscore:
## dotted-underscore:
## dashed-underscore:
# }}}
# Status line style
## BackGround and ForeGround
set -g status-style fg="${debianred}",bg=black
# Status line style for a single window
## BackGround, ForeGround and attribut
set -g window-status-style bg="${darkgrey}",fg="${debianred}",bold
# Status line style for the currently active window
## BackGround, ForeGround and attribut
set -g window-status-current-style bg="${debianred}",fg=black,dim
# selection
set -wg mode-style bg="${debianred}",fg=white,bold
set -g clock-mode-colour "${debianred}"
## 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
# Pane border style for panes aside the active one
set -g pane-border-style fg=white
# Pane border style for the currently active pane
set -g pane-active-border-style 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 {{{
## 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
# 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
# Switch between sessions
bind C-b switch-client -n
# Initialize sessions
bind I source-file ~/.tmux/splitWORK
bind H source-file ~/.tmux/splitLAPTOP
### }}}