2023-06-16 10:29:33 +02:00
|
|
|
set -g default-terminal "xterm-256color"
|
|
|
|
set -ag terminal-overrides ",xterm-256color:RGB"
|
|
|
|
|
2023-05-30 22:45:28 +02:00
|
|
|
set -s escape-time 0
|
|
|
|
|
2024-01-25 21:03:47 +01:00
|
|
|
set-option -g focus-events on
|
|
|
|
|
2024-02-19 15:43:17 +01:00
|
|
|
set-option -g prefix2 C-s
|
2023-05-30 22:45:28 +02:00
|
|
|
|
2023-05-31 00:58:56 +02:00
|
|
|
bind r source-file "$XDG_CONFIG_HOME/tmux/tmux.conf"
|
2023-05-30 22:45:28 +02:00
|
|
|
set -g base-index 1
|
|
|
|
|
2023-06-01 23:54:39 +02:00
|
|
|
set -g status-style 'bg=#45403d fg=#d4be98'
|
|
|
|
set -g status-left-length 30
|
|
|
|
|
2023-05-31 00:58:56 +02:00
|
|
|
set-window-option -g mode-keys vi
|
|
|
|
bind -T copy-mode-vi v send-keys -X begin-selection
|
2024-01-25 19:52:31 +01:00
|
|
|
|
|
|
|
# differentiate copy on linux and max
|
|
|
|
if-shell -b '[ "$(uname -s)" = "Linux" ]' {
|
|
|
|
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
|
|
|
|
}
|
|
|
|
|
|
|
|
if-shell -b '[ "$(uname -s)" = "Darwin" ]' {
|
|
|
|
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'pbcopy'
|
|
|
|
}
|
2023-05-31 00:58:56 +02:00
|
|
|
|
2023-05-30 22:45:28 +02:00
|
|
|
# vim-like pane switching
|
2024-02-19 15:43:17 +01:00
|
|
|
bind ^ last-window
|
|
|
|
bind k select-pane -U
|
|
|
|
bind j select-pane -D
|
|
|
|
bind h select-pane -L
|
|
|
|
bind l select-pane -R
|
|
|
|
|
|
|
|
bind-key f run-shell "tmux neww ~/.config/tmux/tmux-sessionizer"
|
|
|
|
bind-key F run-shell "tmux neww ~/.config/tmux/tmux-ssher"
|
|
|
|
bind-key T run-shell "tmux neww ~/.config/tmux/tmux-sessionizer ~/temp"
|
|
|
|
bind-key R run-shell "tmux neww ~/.config/tmux/tmux-sessionizer ~"
|
|
|
|
bind-key G run-shell "tmux neww ~/.config/tmux/tmux-ggclone"
|
2024-02-19 15:51:48 +01:00
|
|
|
bind-key N run-shell "tmux neww ~/.config/tmux/tmux-new-project"
|