custom tmux config
This commit is contained in:
parent
de70fb3238
commit
1e4b5d6001
@ -4,12 +4,17 @@ bind-key -n M-right select-pane -R
|
|||||||
bind-key -n M-up select-pane -U
|
bind-key -n M-up select-pane -U
|
||||||
bind-key -n M-down select-pane -D
|
bind-key -n M-down select-pane -D
|
||||||
|
|
||||||
|
bind-key -n M-h select-pane -L
|
||||||
|
bind-key -n M-l select-pane -R
|
||||||
|
bind-key -n M-k select-pane -U
|
||||||
|
bind-key -n M-j select-pane -D
|
||||||
#On change les raccourcis pour faire du split vertical et horizontal
|
#On change les raccourcis pour faire du split vertical et horizontal
|
||||||
#On utilise la touche "|" (pipe) pour faire un split vertical
|
#On utilise la touche "|" (pipe) pour faire un split vertical
|
||||||
bind | split-window -h
|
bind | split-window -h
|
||||||
#Et la touche "-" pour faire un split horizontal
|
#Et la touche "-" pour faire un split horizontal
|
||||||
bind - split-window -v
|
bind - split-window -v
|
||||||
|
unbind '"'
|
||||||
|
unbind %
|
||||||
|
|
||||||
##################################
|
##################################
|
||||||
#Changements pratiques
|
#Changements pratiques
|
||||||
@ -17,6 +22,7 @@ bind - split-window -v
|
|||||||
#On permet l'utilisation de la souris pour changer de terminal et de panel
|
#On permet l'utilisation de la souris pour changer de terminal et de panel
|
||||||
setw -g mouse on
|
setw -g mouse on
|
||||||
set -g mouse on
|
set -g mouse on
|
||||||
|
|
||||||
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; send-keys -M'"
|
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'select-pane -t=; copy-mode -e; send-keys -M'"
|
||||||
bind -n WheelDownPane select-pane -t= \; send-keys -M
|
bind -n WheelDownPane select-pane -t= \; send-keys -M
|
||||||
bind -n C-WheelUpPane select-pane -t= \; copy-mode -e \; send-keys -M
|
bind -n C-WheelUpPane select-pane -t= \; copy-mode -e \; send-keys -M
|
||||||
@ -36,31 +42,49 @@ bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xc
|
|||||||
#Les fenêtres commencent par 1 et non par 0
|
#Les fenêtres commencent par 1 et non par 0
|
||||||
set -g base-index 1
|
set -g base-index 1
|
||||||
|
|
||||||
##################################
|
|
||||||
#Changements visuels
|
|
||||||
##################################
|
|
||||||
#On met les panneaux non actif en gris
|
|
||||||
set -g pane-border-fg colour244
|
|
||||||
set -g pane-border-bg default
|
|
||||||
|
|
||||||
#On met le panneau actif en rouge
|
|
||||||
set -g pane-active-border-fg colour124
|
|
||||||
set -g pane-active-border-bg default
|
|
||||||
|
|
||||||
#On met la barre de status en gris
|
|
||||||
set -g status-fg colour235
|
|
||||||
set -g status-bg colour250
|
|
||||||
set -g status-attr dim
|
|
||||||
|
|
||||||
# On surligne les fenêtres actives dans la barre de status en gris foncés
|
|
||||||
set-window-option -g window-status-current-fg colour15
|
|
||||||
set-window-option -g window-status-current-bg colour0
|
|
||||||
|
|
||||||
set -g history-limit 30000
|
set -g history-limit 30000
|
||||||
bind r source-file ~/.tmux.conf \; display "Configuration Reloaded!"
|
bind r source-file ~/.tmux.conf \; display "Configuration Reloaded!"
|
||||||
|
|
||||||
|
|
||||||
|
######################
|
||||||
|
### DESIGN CHANGES ###
|
||||||
|
######################
|
||||||
|
|
||||||
|
# loud or quiet?
|
||||||
|
set -g visual-activity off
|
||||||
|
set -g visual-bell off
|
||||||
|
set -g visual-silence off
|
||||||
|
setw -g monitor-activity off
|
||||||
|
set -g bell-action none
|
||||||
|
|
||||||
|
# modes
|
||||||
|
setw -g clock-mode-colour colour5
|
||||||
|
setw -g mode-style 'fg=colour1 bg=colour18 bold'
|
||||||
|
|
||||||
|
# panes
|
||||||
|
set -g pane-border-style 'fg=colour19 bg=colour0'
|
||||||
|
set -g pane-active-border-style 'bg=colour0 fg=colour9'
|
||||||
|
|
||||||
|
# statusbar
|
||||||
|
set -g status-position bottom
|
||||||
|
set -g status-justify left
|
||||||
|
set -g status-style 'bg=colour18 fg=colour137 dim'
|
||||||
|
set -g status-left ''
|
||||||
|
set -g status-right '#[fg=colour233,bg=colour19] %d/%m #[fg=colour233,bg=colour8] %H:%M:%S '
|
||||||
|
set -g status-right-length 50
|
||||||
|
set -g status-left-length 20
|
||||||
|
|
||||||
|
setw -g window-status-current-style 'fg=colour1 bg=colour19 bold'
|
||||||
|
setw -g window-status-current-format ' #I#[fg=colour249]:#[fg=colour255]#W#[fg=colour249]#F '
|
||||||
|
|
||||||
|
setw -g window-status-style 'fg=colour9 bg=colour18'
|
||||||
|
setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F '
|
||||||
|
|
||||||
|
setw -g window-status-bell-style 'fg=colour255 bg=colour1 bold'
|
||||||
|
|
||||||
|
# messages
|
||||||
|
set -g message-style 'fg=colour232 bg=colour16 bold'
|
||||||
|
|
||||||
# status bar theme
|
# status bar theme
|
||||||
|
|
||||||
@ -90,6 +114,4 @@ bind r source-file ~/.tmux.conf \; display "Configuration Reloaded!"
|
|||||||
#set -g status-right '#[fg=colour235,bg=colour235,nobold,nounderscore,noitalics]#[fg=colour121,bg=colour235] %r %a %Y #[fg=colour238,bg=colour235,nobold,nounderscore,noitalics]#[fg=colour222,bg=colour238] #H #[fg=colour154,bg=colour238,nobold,nounderscore,noitalics]#[fg=colour232,bg=colour154] #(rainbarf --battery --remaining --no-rgb) '
|
#set -g status-right '#[fg=colour235,bg=colour235,nobold,nounderscore,noitalics]#[fg=colour121,bg=colour235] %r %a %Y #[fg=colour238,bg=colour235,nobold,nounderscore,noitalics]#[fg=colour222,bg=colour238] #H #[fg=colour154,bg=colour238,nobold,nounderscore,noitalics]#[fg=colour232,bg=colour154] #(rainbarf --battery --remaining --no-rgb) '
|
||||||
#setw -g window-status-format '#[fg=colour235,bg=colour235,nobold,nounderscore,noitalics]#[default] #I #W #[fg=colour235,bg=colour235,nobold,nounderscore,noitalics]'
|
#setw -g window-status-format '#[fg=colour235,bg=colour235,nobold,nounderscore,noitalics]#[default] #I #W #[fg=colour235,bg=colour235,nobold,nounderscore,noitalics]'
|
||||||
#setw -g window-status-current-format '#[fg=colour235,bg=colour238,nobold,nounderscore,noitalics]#[fg=colour222,bg=colour238] #I #W #F #[fg=colour238,bg=colour235,nobold,nounderscore,noitalics]'
|
#setw -g window-status-current-format '#[fg=colour235,bg=colour238,nobold,nounderscore,noitalics]#[fg=colour222,bg=colour238] #I #W #F #[fg=colour238,bg=colour235,nobold,nounderscore,noitalics]'
|
||||||
run-shell "powerline-daemon -q"
|
|
||||||
source "/usr/lib/python3.6/site-packages/powerline/bindings/tmux/powerline.conf"
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user