configยง
# start at 1, easier for keyboard
set -g base-index 1
setw -g pane-base-index 1
# set terminal type correctly
set-option -g default-terminal "foot"
set-option -ga terminal-overrides "foot:tc"
# workaround for alpine
set-option -g default-command "/bin/bash"
set -g status-keys emacs
set -g window-style 'bg=default' # remove ugly bg
unbind C-b
set -g prefix C-Space # better prefix, helps with ssh
bind -N "Send the prefix key through to the application" \
C-Space send-prefix
setw -g aggressive-resize off
setw -g clock-mode-style 12
set -s escape-time 500
set -g history-limit 15000
setw -g mode-keys vi
# mouse behavior
setw -g mouse on
set -g renumber-windows on
bind-key p command-prompt -p 'save history to filename:' -I '~/tmux.history' 'capture-pane -JS -32768 ; save-buffer %1 ; delete-buffer' # export buffer to file
bind \` switch-client -t'{marked}'
bind-key : command-prompt
bind -r J resize-pane -D 5
bind -r K resize-pane -U 5
bind -r H resize-pane -L 5
bind -r L resize-pane -R 5
bind j choose-window 'join-pane -h -s "%%"'
bind J choose-window 'join-pane -s "%%"'
bind-key s {
split-window -v -c '#{pane_current_path}'
resize-pane -D 5
}
bind Space last-window
bind-key v {
split-window -h -c '#{pane_current_path}'
resize-pane -R 20
}
bind r source-file ~/.config/tmux/tmux.conf \; display "Reloaded!"
bind-key h select-pane -L
bind-key j select-pane -D
bind-key k select-pane -U
bind-key l select-pane -R
bind-key a last-window
bind -r Tab select-pane -t :.+
set-window-option -g other-pane-height 25
set-window-option -g other-pane-width 80
set-window-option -g display-panes-time 1500
set-window-option -g window-status-current-style fg=yellow
set-window-option -g window-status-last-style fg=magenta
bind-key -T copy-mode-vi v send -X begin-selection
bind -r "<" swap-window -d -t -1
bind -r ">" swap-window -d -t +1
set-option -g status-style bg=default
set-option -g status-style fg=magenta
# indicate when prefix is pressed
set -g status-left '#[bg=default fg=blue]#{s/root//:client_key_table} '
set -g status-right '%H:%M #(battery -t)'
set-option -g pane-active-border-style fg=yellow
set-option -g pane-border-style fg=magenta
set-option -g pane-border-lines simple
set-option -g repeat-time 0
set -g status-interval 0