mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
68 lines
1.8 KiB
Bash
68 lines
1.8 KiB
Bash
# Prefix
|
|
set -g prefix C-Space
|
|
set -g prefix2 C-b
|
|
bind C-Space send-prefix
|
|
|
|
# General
|
|
set -g default-terminal "tmux-256color"
|
|
set -ag terminal-overrides ",*:RGB"
|
|
set -g mouse on
|
|
set -g base-index 1
|
|
setw -g pane-base-index 1
|
|
set -g renumber-windows on
|
|
set -g history-limit 50000
|
|
set -g escape-time 0
|
|
set -g focus-events on
|
|
set -g set-clipboard on
|
|
setw -g aggressive-resize on
|
|
set -g detach-on-destroy off
|
|
|
|
# Status bar
|
|
set -g status-position top
|
|
set -g status-interval 5
|
|
set -g status-left-length 30
|
|
set -g status-right-length 50
|
|
set -g window-status-separator ""
|
|
|
|
# Theme
|
|
set -g status-style "bg=default,fg=default"
|
|
set -g status-left "#[fg=black,bg=blue,bold] #S #[bg=default] "
|
|
set -g status-right "#[fg=blue]#{?client_prefix,PREFIX ,}#[fg=brightblack]#h "
|
|
set -g window-status-format "#[fg=brightblack] #I:#W "
|
|
set -g window-status-current-format "#[fg=blue,bold] #I:#W "
|
|
set -g pane-border-style "fg=brightblack"
|
|
set -g pane-active-border-style "fg=blue"
|
|
set -g message-style "bg=default,fg=blue"
|
|
set -g message-command-style "bg=default,fg=blue"
|
|
set -g mode-style "bg=blue,fg=black"
|
|
setw -g clock-mode-colour blue
|
|
|
|
# Reload config
|
|
bind M-r source-file ~/.config/tmux/tmux.conf
|
|
|
|
# Rename window / session
|
|
bind r command-prompt -I "#W" "rename-window -- '%%'"
|
|
bind R command-prompt -I "#S" "rename-session -- '%%'"
|
|
|
|
# Vi mode for copy
|
|
setw -g mode-keys vi
|
|
bind -T copy-mode-vi v send -X begin-selection
|
|
bind -T copy-mode-vi y send -X copy-selection-and-cancel
|
|
|
|
# Pane resizing
|
|
bind -r S-Left resize-pane -L 1
|
|
bind -r S-Down resize-pane -D 1
|
|
bind -r S-Up resize-pane -U 1
|
|
bind -r S-Right resize-pane -R 1
|
|
|
|
# Saner splits that open in the same directory
|
|
bind | split-window -h -c "#{pane_current_path}"
|
|
bind - split-window -v -c "#{pane_current_path}"
|
|
|
|
# New windows in same directory
|
|
bind c new-window -c "#{pane_current_path}"
|
|
|
|
# Sessions
|
|
bind C new-session
|
|
bind X kill-session
|