all repos

dotfiles @ c581d48

i use rach linux btw
1 files changed, 37 insertions(+), 28 deletions(-)
update tmux config
Author: Smirnov Oleksandr ss2316544@gmail.com
Committed at: 2023-04-10 18:45:03 +0300
Authored at: 2023-04-10 18:39:20 +0300
Parent: 772add0
M tmux.conf
ยทยทยท
        1
        
        -set -sg escape-time 0  # ESC time out

      
        2
        
        -set -g prefix C-a      # Prefix

      
        3
        
        -set -g mouse on        # Mouse support

      
        
        1
        +set -g default-terminal "screen-256color"

      
        
        2
        +set-option -g status-position top

      
        
        3
        +

      
        
        4
        +set -g mouse on

      
        
        5
        +set -sg escape-time 0

      
        4
        6
         

      
        5
        
        -# Set base index

      
        6
        7
         set -g base-index 1

      
        7
        8
         set -g pane-base-index 1

      
        8
        9
         

      
        9
        
        -# Colors

      
        10
        
        -set-option -sa terminal-overrides ",*:Tc"

      
        
        10
        +set -g pane-border-style fg=colour240

      
        
        11
        +set -g pane-active-border-style fg=colour39

      
        
        12
        +set-window-option -g window-status-current-style fg=colour39

      
        
        13
        +

      
        
        14
        +set-window-option -g mode-keys vi

      
        
        15
        +bind-key -T copy-mode-vi 'v' send -X begin-selection

      
        
        16
        +bind-key -T copy-mode-vi 'y' send -X copy-selection

      
        
        17
        +unbind -T copy-mode-vi MouseDragEnd1Pane

      
        11
        18
         

      
        
        19
        +# set prefix

      
        
        20
        +set -g prefix C-r

      
        
        21
        +unbind C-b

      
        
        22
        +bind-key C-r send-prefix

      
        12
        23
         

      
        13
        
        -#== Keys

      
        
        24
        +# keys

      
        14
        25
         bind r source-file ~/.tmux.conf \; display 'Reloaded tmux config'

      
        15
        
        -

      
        16
        
        -

      
        17
        
        -# Change pane

      
        
        26
        +bind Tab last-window

      
        
        27
        +# split window

      
        
        28
        +bind _ split-window -v

      
        
        29
        +bind - split-window -h

      
        
        30
        +# move windows

      
        
        31
        +bind-key i swap-window -t -1

      
        
        32
        +bind-key o swap-window -t +1

      
        
        33
        +# change focus

      
        18
        34
         bind -r h select-pane -L

      
        19
        35
         bind -r j select-pane -D

      
        20
        36
         bind -r k select-pane -U

      
        21
        37
         bind -r l select-pane -R

      
        22
        
        -

      
        23
        
        -# Resize pane

      
        
        38
        +# resizing panes

      
        24
        39
         bind -r H resize-pane -L 2

      
        25
        40
         bind -r J resize-pane -D 2

      
        26
        41
         bind -r K resize-pane -U 2

      
        27
        42
         bind -r L resize-pane -R 2

      
        28
        43
         

      
        29
        
        -# Window move

      
        30
        
        -bind-key i swap-window -t -1

      
        31
        
        -bind-key o swap-window -t +1

      
        32
        
        -

      
        33
        
        -## Create window

      
        34
        
        -bind _ split-window -v

      
        35
        
        -bind - split-window -h

      
        36
        
        -

      
        37
        
        -## Change focus on last window

      
        38
        
        -bind Tab last-window

      
        39
        
        -

      
        40
        
        -#== Status bar

      
        
        44
        +# status bar

      
        41
        45
         set -g status-right ' #{?client_prefix,*,} #S '

      
        42
        46
         set -g status-left ' '

      
        43
        47
         set -g status-bg default

      
        44
        48
         set -g status-fg colour254

      
        45
        49
         set -g status-style fg=colour110

      
        46
        50
         

      
        47
        
        -#== Pane border colors

      
        48
        
        -set -g pane-border-style fg=colour240

      
        49
        
        -set -g pane-active-border-style fg=colour39

      
        50
        
        -set-window-option -g window-status-current-style fg=colour39

      
        
        51
        +# plugins

      
        
        52
        +set -g @plugin 'tmux-plugins/tpm'

      
        
        53
        +set -g @plugin 'tmux-plugins/tmux-resurrect'

      
        
        54
        +set -g @plugin 'tmux-plugins/tmux-continuum'

      
        
        55
        +

      
        
        56
        +set -g @resurrect-capture-pane-contents 'on'

      
        
        57
        +set -g @continuum-restore 'on'

      
        
        58
        +

      
        
        59
        +run '~/.tmux/plugins/tpm/tpm'