dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

tmux.conf (1520B)


      1 # .tmux.conf
      2 
      3 # Reduce escape time from 500 to 10ms for better behaviour in vim.
      4 set-option -sg escape-time 10
      5 
      6 # 256 colour terminal, underscore, undercurl.
      7 set-option -as terminal-features ',xterm-256color:RGB'  # 256 colour.
      8 set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm'  # undercurl.
      9 set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m'  # underscore colours - needs tmux-3.0
     10 
     11 # Enable focus events if supported by the terminal.
     12 set-option -g focus-events on
     13 
     14 # Movement key bindings.
     15 set-window-option -g mode-keys vi
     16 set-option -g status-keys vi
     17 bind-key h select-pane -L
     18 bind-key j select-pane -D
     19 bind-key k select-pane -U
     20 bind-key l select-pane -R
     21 bind-key ? list-keys
     22 
     23 # Selection key bindings.
     24 bind-key -T copy-mode-vi 'v' send-keys -X begin-selection
     25 bind-key -T copy-mode-vi 'y' send-keys -X copy-selection
     26 bind-key -T copy-mode-vi 'r' send-keys -X rectangle-toggle
     27 
     28 # Clear screen and reset scroll buffer.
     29 bind-key b send-keys -R C-l\; clear-history
     30 
     31 # Frequently used layouts.
     32 bind-key ^ split-window -h\; split-window -v\; select-pane -U\; select-pane -L
     33 bind-key \\ split-window -h\; split-window -h\; select-layout even-horizontal\; select-pane -L
     34 
     35 # Disable mouse.
     36 set-option -g mouse off
     37 
     38 # Disable automatic window renaming.
     39 set-window-option -g automatic-rename off
     40 
     41 # Highlight panes with activity in the status bar.
     42 set-window-option -g monitor-activity on
     43 
     44 # Solarized Osaka colour scheme.
     45 source ~/.config/tmux/solarized-osaka_moon.tmux