96 lines
4.3 KiB
Plaintext
96 lines
4.3 KiB
Plaintext
#on utilise alt + flèches our naviguer entre les panels
|
|
bind-key -n M-left select-pane -L
|
|
bind-key -n M-right select-pane -R
|
|
bind-key -n M-up select-pane -U
|
|
bind-key -n M-down select-pane -D
|
|
|
|
#On change les raccourcis pour faire du split vertical et horizontal
|
|
#On utilise la touche "|" (pipe) pour faire un split vertical
|
|
bind | split-window -h
|
|
#Et la touche "-" pour faire un split horizontal
|
|
bind - split-window -v
|
|
|
|
|
|
##################################
|
|
#Changements pratiques
|
|
##################################
|
|
#On permet l'utilisation de la souris pour changer de terminal et de panel
|
|
setw -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 WheelDownPane select-pane -t= \; send-keys -M
|
|
bind -n C-WheelUpPane select-pane -t= \; copy-mode -e \; send-keys -M
|
|
bind -T copy-mode-vi C-WheelUpPane send-keys -X halfpage-up
|
|
bind -T copy-mode-vi C-WheelDownPane send-keys -X halfpage-down
|
|
bind -T copy-mode-emacs C-WheelUpPane send-keys -X halfpage-up
|
|
bind -T copy-mode-emacs C-WheelDownPane send-keys -X halfpage-down
|
|
|
|
# To copy, left click and drag to highlight text in yellow,
|
|
# once you release left click yellow text will disappear and will automatically be available in clibboard
|
|
# # Use vim keybindings in copy mode
|
|
setw -g mode-keys vi
|
|
# Update default binding of `Enter` to also use copy-pipe
|
|
unbind -T copy-mode-vi Enter
|
|
bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "xclip -selection c"
|
|
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xclip -in -selection clipboard"
|
|
#Les fenêtres commencent par 1 et non par 0
|
|
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
|
|
bind r source-file ~/.tmux.conf \; display "Configuration Reloaded!"
|
|
|
|
|
|
|
|
|
|
# status bar theme
|
|
|
|
#set -g status-bg 'colour235'
|
|
#set -g message-command-fg 'colour222'
|
|
#set -g status-justify 'centre'
|
|
#set -g status-left-length '100'
|
|
#set -g status 'on'
|
|
#set -g pane-active-border-fg 'colour154'
|
|
#set -g message-bg 'colour238'
|
|
#set -g status-right-length '100'
|
|
#set -g status-right-attr 'none'
|
|
#set -g message-fg 'colour222'
|
|
#set -g message-command-bg 'colour238'
|
|
#set -g status-attr 'none'
|
|
#set -g status-utf8 'on'
|
|
#set -g pane-border-fg 'colour238'
|
|
#set -g status-left-attr 'none'
|
|
#setw -g window-status-fg 'colour121'
|
|
#setw -g window-status-attr 'none'
|
|
#setw -g window-status-activity-bg 'colour235'
|
|
#setw -g window-status-activity-attr 'none'
|
|
#setw -g window-status-activity-fg 'colour154'
|
|
#setw -g window-status-separator ''
|
|
#setw -g window-status-bg 'colour235'
|
|
#set -g status-left '#[fg=colour232,bg=colour154] #S #[fg=colour154,bg=colour238,nobold,nounderscore,noitalics]#[fg=colour222,bg=colour238] #W #[fg=colour238,bg=colour235,nobold,nounderscore,noitalics]#[fg=colour121,bg=colour235] #(whoami) #(uptime | cut -d " " -f 1,2,3) #[fg=colour235,bg=colour235,nobold,nounderscore,noitalics]'
|
|
#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-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"
|
|
|