ansible-role--tmux/templates/tmux.conf.j2
2024-07-12 14:47:02 +02:00

93 lines
1.7 KiB
Django/Jinja

#
# Tmux shortcuts & cheatsheet : https://gist.github.com/MohamedAlaa/2961058
#
#
###
#
# INPUT/OUTPUT
#
set-option -g utf8 on
set-option -g status-utf8 on
##
#
# COLOUR (Solarized dark)
#
set -g default-terminal "xterm-256color"
## default statusbar colors
set-option -g status-style "bg=black"
set-option -g status-bg black #base02
set-option -g status-fg yellow #yellow
set-option -g status-attr default
## default window title colors
set-window-option -g window-status-fg brightblue #base0
set-window-option -g window-status-bg default
set-window-option -g window-status-attr dim
## active window title colors
set-window-option -g window-status-current-fg brightred #orange
set-window-option -g window-status-current-bg default
set-window-option -g window-status-current-attr bright
## pane border
set-option -g pane-border-fg black #base02
set-option -g pane-active-border-fg green #base01
## message text
set-option -g message-bg black #base02
set-option -g message-fg brightred #orange
## pane number display
set-option -g display-panes-active-colour blue #blue
set-option -g display-panes-colour brightred #orange
## clock
set-window-option -g clock-mode-colour green #green
## bell
set-window-option -g window-status-bell-style fg=black,bg=red #base02, red
##
# KEY BINDING
#
## Allow Ctrl-left/Right for shell
set-window-option -g xterm-keys on
## Alt-Left / Alt-Right to move between windows
bind-key -n M-Left previous-window
bind-key -n M-Right next-window
## Use C-a instead of C-b
# unbind C-b
# set -g prefix C-a
# bind C-a send-prefix
## Use C-b r to reload configuration
unbind r
bind r source-file ~/.tmux.conf
# Splitting panes with - and |
unbind %
bind | split-window -h
bind - split-window -v