Update tmux

Author Mitja Felicijan <mitja.felicijan@gmail.com> 2024-06-20 16:26:49 +0200
Committer Mitja Felicijan <mitja.felicijan@gmail.com> 2024-06-20 16:26:49 +0200
Commit 6502fc6feb2b4aaafcbb8421892dc86aa7940432 (patch)
-rw-r--r-- tmux.conf 22
1 files changed, 5 insertions, 17 deletions
diff --git a/tmux.conf b/tmux.conf
1
# Set window titles
1
set -g default-terminal "screen-256color"
2
set-window-option -g automatic-rename on
2
set-window-option -g automatic-rename on
3
set-option -g set-titles on
3
set-option -g set-titles on
  
4
set-option -sg escape-time 10
  
5
set-option -g mouse off
  
6
set-window-option -g mode-keys vi
4
  
7
  
5
# Leader key
  
6
set -g prefix M-x
8
set -g prefix M-x
7
  
  
8
# Send M+x to applications by pressing it twice
  
9
bind M-x send-prefix
9
bind M-x send-prefix
10
  
10
  
11
# Start windows number @1 Instead of @0
  
12
set -g base-index 1
11
set -g base-index 1
13
set-window-option -g pane-base-index 1
12
set-window-option -g pane-base-index 1
14
  
  
15
# Renumber windows when closing
  
16
set -g renumber-windows on
13
set -g renumber-windows on
17
  
14
  
18
# Statusbar: purple bg and white fg.
  
19
set -g status-bg '#480b8e'
15
set -g status-bg '#480b8e'
20
set -g status-fg '#ffffff'
16
set -g status-fg '#ffffff'
21
  
  
22
# Set inactive/active window styles.
  
23
set -g window-status-current-format "#[fg=#ffffff]#[bg=#111111]#[fg=#ffffff]#[bg=#111111] #I:#W #[fg=#ffffff]#[bg=#111111]"
17
set -g window-status-current-format "#[fg=#ffffff]#[bg=#111111]#[fg=#ffffff]#[bg=#111111] #I:#W #[fg=#ffffff]#[bg=#111111]"
24
set -g window-style 'bg=#222222'
18
set -g window-style 'bg=#222222'
25
set -g window-active-style 'bg=#111111'
19
set -g window-active-style 'bg=#111111'
26
  
20
  
27
# Other settings
  
28
set-option -sg escape-time 10
  
29
set-option -g mouse off
  
30
set-window-option -g mode-keys vi
  
31
  
  
32
# Removes the double pressing. Fixes switching panes and pressing up right
  
33
# after switching panes. Must have!
  
34
bind-key Up    select-pane -U
21
bind-key Up    select-pane -U
35
bind-key Down  select-pane -D
22
bind-key Down  select-pane -D
36
bind-key Left  select-pane -L
23
bind-key Left  select-pane -L
37
bind-key Right select-pane -R
24
bind-key Right select-pane -R
  
25