# set Zsh as your default Tmux shell set-option -g default-shell /bin/zsh set-option -g update-environment "WAYLAND_DISPLAY" # UTF is great, let us use that setw -gq utf8 on set -gq status-utf8 on # Tmux should be pretty, we need 256 color for that set -g default-terminal "screen-256color" # Tmux uses a 'control key', let's set it to 'Ctrl-d' # Reason: 'Ctrl-d' is easier to reach than 'Ctrl-b' set -g prefix C-d unbind C-b # Use vi key bindings set -g mode-keys vi bind-key -T copy-mode-vi 'y' send-keys -X copy-pipe-and-cancel "wl-copy" bind-key -T copy-mode-vi 'v' send -X begin-selection # command delay? We don't want that, make it short set -sg escape-time 0 set-option -g repeat-time 0 # Set the numbering of windows to go from 1 instead # of 0 - silly programmers :| set-option -g base-index 1 setw -g pane-base-index 1 # Allow us to reload our Tmux configuration while # using Tmux bind r source-file ~/.tmux.conf \; display "Reloaded!" # We do our own naming set-option -g allow-rename off # Bind keys for splitting bind-key v split-window -h -c "#{pane_current_path}" bind-key s split-window -v -c "#{pane_current_path}" # Move panes vim-style bind-key -r -T prefix h select-pane -L bind-key -r -T prefix j select-pane -D bind-key -r -T prefix k select-pane -U bind-key -r -T prefix l select-pane -R # Swap panes using shift bind-key -r -T prefix J swap-pane -D bind-key -r -T prefix K swap-pane -U # Resize by holding ctrl bind-key -r -T prefix C-h resize-pane -L 10 bind-key -r -T prefix C-j resize-pane -D 10 bind-key -r -T prefix C-k resize-pane -U 10 bind-key -r -T prefix C-l resize-pane -R 10 # Resize by holding META for more effect bind-key -r -T prefix M-h resize-pane -L 30 bind-key -r -T prefix M-j resize-pane -D 30 bind-key -r -T prefix M-k resize-pane -U 30 bind-key -r -T prefix M-l resize-pane -R 30 # Remove arrows, LEARN RIGHT! unbind Up unbind Down unbind Left unbind Right # History limit set -g history-limit 10000 # turn on mouse mode setw -g mouse on bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e'" bind -n WheelDownPane select-pane -t= \; send-keys -M # List of plugins set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-sensible' set -g @plugin "arcticicestudio/nord-tmux" # Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) run '~/.tmux/plugins/tpm/tpm'