dotfiles

beau's configuration files
git clone https://git.beauhilton.com/dotfiles.git
Log | Files | Refs | README

tmux.conf (1747B)


      1 
      2 unbind C-b
      3 set -g prefix '\'
      4 bind-key '\' send-prefix
      5 
      6 # activate truecolor support
      7 set -g default-terminal "tmux-256color"
      8 set -ga terminal-overrides ",*256col*:Tc"
      9 set status-bg default
     10 set-option -g status-right ' [#(git branch)]#[fg=white] #[fg=white]%R %m-%d#(acpi | cut -d ',' -f 2)#[default]'
     11 
     12 setw -g mode-keys vi
     13 set -g mouse on
     14 setw -g automatic-rename
     15 set -g history-limit 30000
     16 set-option -g visual-activity on
     17 set-option -g set-titles on
     18 set-option -g set-titles-string '#H:#S.#I.#P #W #T'
     19 
     20 # copy-pasta
     21 set -g set-clipboard external
     22 bind-key P paste-buffer
     23 bind -T copy-mode-vi v send-keys -X begin-selection
     24 bind -T copy-mode-vi r send-keys -X rectangle-toggle
     25 bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xclip -i -f -selection primary"
     26 bind C-y run "tmux save-buffer - | xclip -i -sel primary"
     27 bind C-p run "tmux set-buffer -- \"$(xclip -o -sel primary);\"; tmux paste-buffer -p"
     28 # Selection with mouse copies to clipboard, in addition to the default action.
     29 unbind -n -Tcopy-mode-vi MouseDragEnd1Pane
     30 bind -Tcopy-mode-vi MouseDragEnd1Pane send -X copy-selection-and-cancel\; run "tmux save-buffer - | xclip -i -sel clipboard > /dev/null"
     31 # Middle click to paste from the clipboard
     32 unbind-key MouseDown2Pane
     33 bind-key -n MouseDown2Pane run "tmux set-buffer -- \"$(xclip -o -sel primary);\"; tmux paste-buffer -p"
     34 
     35 bind-key r source-file ~/.config/tmux/tmux.conf
     36 bind-key Space list-panes
     37 
     38 set-window-option -g window-status-current-style fg=white,bg=default
     39 setw -g aggressive-resize on
     40 bind-key h select-pane -L
     41 bind-key j select-pane -D
     42 bind-key k select-pane -U
     43 bind-key l select-pane -R
     44 bind-key -r C-h resize-pane -L
     45 bind-key -r C-j resize-pane -D
     46 bind-key -r C-k resize-pane -U
     47 bind-key -r C-l resize-pane -R
     48 
     49