.tmux.conf some stuff

This commit is contained in:
cubernetes 2023-07-30 06:56:57 +02:00
parent bbaec7fae9
commit f3464f42b5
1 changed files with 10 additions and 4 deletions

View File

@ -2,23 +2,27 @@ set -g default-command "/usr/bin/bash"
# Support mouse scrolling, system clipboard, etc.
set -g mouse on
bind-key -T copy-mode-vi WheelUpPane send -N2 -X scroll-up
bind-key -T copy-mode-vi WheelDownPane send -N2 -X scroll-down
# CTRL-A instead of CTRL-B as prefix
# CTRL-Space instead of CTRL-B as prefix
unbind C-b
set-option -g prefix C-Space
bind-key C-a send-prefix
bind-key -n C-b send-prefix
set-window-option -g mode-keys vi
bind-key -T copy-mode-vi v send -X begin-selection
bind-key -T copy-mode-vi V send -X select-line
bind-key -T copy-mode-vi y send -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
set-option -g escape-time 10
set -g focus-events on
# Necessary for the styling!
setw -g pane-base-index 1
set -g base-index 1
# Styling
set -g default-terminal "xterm-256color"
set -g default-terminal "tmux-256color"
set -g status-style bg=#3c3836,fg=#a89984
set -g status-left "#[bg=#fb4934,fg=#3c3836]  #{session_name} #[bg=#fe8019,fg=#fb4943]#[bg=#504945,fg=#fe8019]"
set -g window-status-format "#[bg=#504945] #{window_index}-#{window_name} #{?#{==:#{window_index},#{session_windows}},#[bg=#3c3836 fg=#504945],}"
@ -32,7 +36,7 @@ set -g pane-border-format "#{?pane_active,#[fg=#3c3836 bg=#fb4934] #{pane_ind
set -g pane-border-status 'top'
set -g pane-border-style fg=#fb4934
set -g pane-active-border-style fg=#fb4934
set-option -ga terminal-overrides ",xterm*:Tc"
# set-option -ga terminal-overrides ",xterm*:Tc"
set-option -g history-limit 50000
bind-key -T prefix h select-pane -L
@ -44,3 +48,5 @@ bind-key -r -T prefix C-h resize-pane -L 2
bind-key -r -T prefix C-j resize-pane -D 2
bind-key -r -T prefix C-k resize-pane -U 2
bind-key -r -T prefix C-l resize-pane -R 2
bind-key -T prefix C-p popup