updated tmux.conf
* stripped some trailing whitespace * visual block selection now works just like in vim * added tmux-battery plugin showing stats in the status bar
This commit is contained in:
parent
6347b8d10f
commit
1648ad0b4a
18
.tmux.conf
18
.tmux.conf
@ -3,6 +3,7 @@
|
||||
|
||||
set -g base-index 1
|
||||
set-window-option -g automatic-rename on
|
||||
set -g renumber-windows on # renumber windows when a window is closed
|
||||
set-option -g set-titles on
|
||||
set-option -g allow-rename on
|
||||
|
||||
@ -13,10 +14,10 @@ setw -g mouse on
|
||||
setw -g mode-keys vi
|
||||
bind-key -T copy-mode-vi v send-keys -X begin-selection
|
||||
bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -sel clip -i'
|
||||
bind-key -T copy-mode-vi r send-keys -X rectangle-toggle
|
||||
bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle \; send-keys -X begin-selection
|
||||
set -g @yank_selection 'primary' # or 'secondary' or 'clipboard'
|
||||
set -g @yank_selection_mouse 'clipboard' # or 'primary' or 'secondary'
|
||||
set -g @yank_action 'copy-pipe' # or 'copy-pipe-and-cancel' for the default
|
||||
set -g @yank_action 'copy-pipe-and-cancel' # or 'copy-pipe-and-cancel' for the default
|
||||
setw -g monitor-activity on
|
||||
|
||||
bind-key v split-window -h
|
||||
@ -31,8 +32,8 @@ bind -n M-Down select-pane -D
|
||||
# No delay for escape key press
|
||||
set -sg escape-time 0
|
||||
|
||||
# Rather than constraining window size to the maximum size of any client
|
||||
# connected to the *session*, constrain window size to the maximum size of any
|
||||
# Rather than constraining window size to the maximum size of any client
|
||||
# connected to the *session*, constrain window size to the maximum size of any
|
||||
# client connected to *that window*. Much more reasonable.
|
||||
setw -g aggressive-resize on
|
||||
|
||||
@ -51,16 +52,19 @@ set -g status-fg white
|
||||
#setw -g status-style default
|
||||
setw -g status-bg colour237
|
||||
setw -g status-fg colour39
|
||||
set -g status-interval 10
|
||||
set -g status-left-length 30
|
||||
set -g status-interval 10 # redraw status line every n seconds
|
||||
set -g status-left-length 70
|
||||
set -g status-right-length 70
|
||||
set -g status-left '#[fg=green,bold](#S) '# #(whoami) '
|
||||
set -g status-right '#[fg=yellow]#(cut -d " " -f 1-3 /proc/loadavg)#[default] #[fg=white]%a %H:%M#[default]'
|
||||
#set -g status-right '#[fg=yellow]#(cut -d " " -f 1-3 /proc/loadavg)#[default] #[fg=white]%a %H:%M#[default]'
|
||||
set -g status-right '#{battery_status_bg} #{battery_percentage} #{battery_remain} #[fg=yellow]#(cut -d " " -f 1-3 /proc/loadavg)#[fg=white] %a %H:%M #[default]'
|
||||
|
||||
# List of plugins
|
||||
set -g @plugin 'tmux-plugins/tpm'
|
||||
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
||||
set -g @plugin 'tmux-plugins/tmux-yank'
|
||||
set -g @plugin 'tmux-plugins/tmux-copycat'
|
||||
set -g @plugin 'tmux-plugins/tmux-battery'
|
||||
|
||||
if "test ! -d ~/.tmux/plugins/tpm" \
|
||||
"run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm && ~/.tmux/plugins/tpm/bin/install_plugins'"
|
||||
|
Loading…
Reference in New Issue
Block a user