Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 68 additions & 16 deletions tmux/tmux.conf
Original file line number Diff line number Diff line change
@@ -1,26 +1,78 @@
# prefix is CTRL-B and CTRL-X
set -g prefix C-b
set -g prefix2 C-a
set-window-option -g xterm-keys on

# enable CTRL-B and CTRL-X under other programs (like vim) - you'll have to press twice le combination to have the old one
bind C-b send-prefix
bind C-a send-prefix

# Set 256-colour terminal (default is 16)
set -g default-terminal "screen-256color"

# Number of lines held in window history
set -g history-limit 100000

bind - split-window -h -c '#{pane_current_path}' # Split panes horizontal
bind _ split-window -v -c '#{pane_current_path}' # Split panes vertical

# Linux only
set -g mouse on
set -g set-clipboard on
#setw -g mode-keys vi
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
bind r source-file ~/.tmux.conf \; display-message "Config reloaded!"


set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
#set -g @plugin 'b0o/tmux-autoreload'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @continuum-restore 'on'
set -g @treemux-tree-client 'nvim-tree' # or 'neo-tree'
set -g @treemux-tree-nvim-init-file '~/.tmux/plugins/treemux/configs/treemux_init.lua'
GNU nano 8.3 /home/hugo/.tmux.conf
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'dracula/tmux'


##### DRACULA OPTIONS #####

# modules
set -g @dracula-plugins "cpu-usage ram-usage battery time"

# météo désactivée
set -g @dracula-show-weather false

# heure
set -g @dracula-show-time true
set -g @dracula-time-format "%H:%M"

# cpu
set -g @dracula-cpu-display-load true

# ram
set -g @dracula-ram-display-percentage true

# batterie
set -g @dracula-show-battery true

# style
set -g @dracula-show-powerline true
set -g @dracula-show-left-icon session

# Other examples:
# set -g @plugin 'github_username/plugin_name'
# set -g @plugin 'github_username/plugin_name#branch'
# set -g @plugin 'git@github.com:user/plugin'
# set -g @plugin 'git@bitbucket.com:user/plugin'

# Shell config
set-option -g default-shell /bin/zsh
run-shell "tmux setenv -g TMUX_VERSION $(tmux -V | cut -c 6-)"

# Use C-a instead of C-b
set-option -g prefix C-a
unbind C-b

# 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"
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run '~/.tmux/plugins/tpm/tpm'