dotfiles/.tmux.conf

118 lines
3.2 KiB
Plaintext

# Setting the prefix from C-b to C-j
set -g prefix C-j
# Free the original Ctrl-b prefix keybinding
unbind C-b
#setting the delay between prefix and command
set -s escape-time 2
# Ensure that we can send Ctrl-A to other apps
bind C-j send-prefix
bind x kill-pane
# Renumber panes
set-option -g renumber-windows on
# Set the base index for windows to 1 instead of 0
set -g base-index 1
# Set the base index for panes to 1 instead of 0
setw -g pane-base-index 1
# Reload the file with Prefix r
bind r source-file ~/.tmux.conf \; display "Reloaded!"
# splitting panes
bind | split-window -h
bind - split-window -v
# moving between panes
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Quick window selection
bind -r C-h select-window -t :-
bind -r C-l select-window -t :+
# Pane resizing
bind -r H resize-pane -L 5
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r L resize-pane -R 5
# change default dir to current dir
bind P attach -c "#{pane_current_path}"\; display "New path: #{pane_current_path}"
# mouse support - set to on if you want to use the mouse
set -g mouse off
set -g default-terminal "screen-256color"
# enable activity alerts
setw -g monitor-activity on
set -g visual-activity on
# Update the status bar every 5 seconds
set -g status-interval 5
# enable vi keys.
setw -g mode-keys vi
# Basic status bar colors
set-option -g status-bg default
set-option -g status-fg white
# Left side of status bar
set-option -g status-left-length 30
set-option -g status-left "#[fg=#163738,bg=#88C0D0] #S #[fg=default,bg=default] "
# Window status
set-option -g window-status-format "#[fg=#E5E9F0,bg=brightblack] #I #[fg=#E5E9F0,bg=black] #W "
set-option -g window-status-current-format "#[fg=#163638,bg=#E5E9F0] #I #[fg=#163638,bg=#88C0D0] #W "
set-option -g window-status-separator " "
set-option -g status-justify left
# Right side of status bar
set-option -g status-right-length 40
set-option -g status-right "#[fg=#163738,bg=#88C0D0] #(whoami) "
#### COLOUR (Solarized dark)
# default statusbar colors
set-option -g status-style fg=yellow,bg=black #yellow and base02
# default window title colors
set-window-option -g window-status-style fg=brightblue,bg=default #base0 and default
#set-window-option -g window-status-style dim
# active window title colors
set-window-option -g window-status-current-style fg=brightred,bg=default #orange and default
#set-window-option -g window-status-current-style bright
# pane border
set-option -g pane-border-style fg=black #base02
set-option -g pane-active-border-style fg=brightgreen #base01
# message text
set-option -g message-style fg=brightred,bg=black #orange and base01
# pane number display
set-option -g display-panes-active-colour blue #blue
set-option -g display-panes-colour brightred #orange
# Pane number indicator
set-option -g display-panes-colour brightblack
set-option -g display-panes-active-colour brightwhite
# Clock mode
set-option -g clock-mode-colour white
set-option -g clock-mode-style 24
# Copy/Paste
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "wl-copy"
bind-key p run "wl-paste --no-newline | tmux load-buffer - ; tmux paste-buffer"
# Shell
#set -g default-shell /run/current-system/sw/bin/fish
set -g default-shell fish