dotfiles/.tmux.conf

58 lines
1.5 KiB
Plaintext
Raw Permalink Normal View History

2023-12-12 17:47:38 +00:00
# Basic options
2023-11-24 22:25:55 +00:00
set -g history-limit 100000
set -g mouse on
2024-02-01 11:56:46 +00:00
set -g mode-keys vi
set -g set-clipboard on
2023-12-12 17:47:38 +00:00
set -g default-shell /usr/local/bin/fish
2023-12-29 11:11:53 +00:00
set -g default-terminal "tmux-256color"
2023-11-24 22:25:55 +00:00
# Reloading config on the fly
unbind r
bind r source-file ~/.tmux.conf \; display "Configuration reloaded."
# Create panes more easily
unbind %
unbind '"'
bind % split-window -h -c "#{pane_current_path}"
bind '"' split-window -v -c "#{pane_current_path}"
# Navigate panes more easily
bind h select-pane -L
bind j select-pane -D
bind k select-pane -U
bind l select-pane -R
# Control windows more easily
unbind n
unbind w
bind n command-prompt "rename-window '%%'"
2024-07-31 08:37:25 +01:00
bind w new-window -c "#{pane_current_path}"
2023-12-29 11:11:53 +00:00
bind -n C-S-Left swap-window -t -1\; select-window -t -1
bind -n C-S-Right swap-window -t +1\; select-window -t +1
2023-11-24 22:25:55 +00:00
set -g base-index 1
2023-12-12 17:47:38 +00:00
set -g pane-base-index 1
2024-01-06 22:04:54 +00:00
set -g renumber-windows on
2023-12-12 17:47:38 +00:00
# Style
set -g visual-activity off
set -g visual-bell off
set -g visual-silence off
set -g bell-action none
set -g monitor-activity off
set -g status-position bottom
set -g status-justify left
set -g status-style 'bg=colour252 fg=colour235'
set -g status-left ' '
set -g status-left-length 20
set -g status-right '#(~/.cwm_scripts/tmux-bar)'
2024-08-20 22:50:03 +01:00
set -g status-right-length 75
2023-12-12 17:47:38 +00:00
set -g window-status-style 'bg=colour252 fg=colour235'
set -g window-status-format '[#I]#W#F'
set -g window-status-current-style 'bg=colour254 bold'
set -g window-status-current-format '#[fg=colour235][#I]#W#F'
set -g window-status-bell-style 'fg=colour1 bold'
set -g message-style 'fg=colour232 bg=colour15 bold'