tmux_server/tmux.conf
2024-05-22 16:16:33 +02:00

79 lines
1.9 KiB
Bash

# Tmux configuration file
set-option -s escape-time 0
unbind C-a
unbind C-a
set -g prefix C-a
bind C-a send-prefix
unbind Q
bind Q source-file $XDG_CONFIG_HOME/tmux/tmux.conf \; display "Reloaded config"
unbind '\'
unbind -
unbind %
unbind '"'
bind '\' split-window -h -c '#{pane_current_path}'
bind - split-window -v -c '#{pane_current_path}'
bind c new-window -c '#{pane_current_path}'
bind -r ^ last-window
bind -r h select-pane -L
bind -r j select-pane -D
bind -r k select-pane -U
bind -r l select-pane -R
bind -r H resize-pane -L 4
bind -r J resize-pane -D 4
bind -r K resize-pane -U 4
bind -r L resize-pane -R 4
bind -r n next-window
bind -r p previous-window
bind X confirm kill-window
bind T confirm kill-session
bind -r M set -g mouse
set-window-option -g mode-keys vi
bind -T copy-mode-vi v send-keys -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
set -g pane-border-indicators colour
set -g pane-active-border-style fg="#a7c080",bg=default
set -g pane-border-style fg="#1e2326",bg=default
set -g pane-border-lines single
set -g popup-border-style fg="#a7c080",bg=default
set -g popup-border-lines rounded
set -g clock-mode-colour "#a7c080"
set -g display-panes-active-colour "#a7c080"
set -g display-panes-time 10000
set -g window-size largest
set -g renumber-windows on
set -g base-index 1
setw -g pane-base-index 1
set -g status-position bottom
set -g status-style bg="#1e2326",fg="#d3c6aa",bold
set -g status-keys vi
set -g status-left-length 100
set -g status-right '#{?client_prefix,#[fg=#000000]#[bg=#dfa000]#[bold] PREFIX ,}'
# set -g status-right '#{?client_prefix,#[fg=#000000]#[bg=#a7c080]#[bold]  ,}'
set -wg window-status-current-style bg="#a7c080",fg="#1e2326"
set -wg mode-style bg="#a7c080",fg="#1e2326"
set -g cursor-style blinking-underline
set -g focus-events on
set -g visual-bell off
set -g default-command "exec /bin/zsh"