minor tweaks to tmux.conf.
This commit is contained in:
parent
78ca33fb88
commit
e3a9ca33ce
|
@ -44,16 +44,22 @@
|
||||||
bind -r J resize-pane -D 5
|
bind -r J resize-pane -D 5
|
||||||
bind -r K resize-pane -U 5
|
bind -r K resize-pane -U 5
|
||||||
bind -r L resize-pane -R 5
|
bind -r L resize-pane -R 5
|
||||||
#sorta-kinda vim keys for copy and paste
|
|
||||||
|
#sorta-kinda vim keys for copy and paste (entering copy mode is [, can paste with ]).
|
||||||
bind-key -T copy-mode-vi v send-keys -X begin-selection
|
bind-key -T copy-mode-vi v send-keys -X begin-selection
|
||||||
bind-key -T copy-mode-vi y send-keys -X copy-selection
|
bind-key -T copy-mode-vi y send-keys -X copy-selection
|
||||||
bind-key -T copy-mode-vi y send-keys -X copy-pipe "xclip -sel clip -i"
|
bind-key -T copy-mode-vi y send-keys -X copy-pipe "xclip -sel clip -i"
|
||||||
bind-key -T copy-mode-vi r send-keys -X rectangle-toggle
|
bind-key -T copy-mode-vi r send-keys -X rectangle-toggle
|
||||||
|
|
||||||
|
#display pane numbers
|
||||||
|
unbind d
|
||||||
|
bind-key d display-panes
|
||||||
|
|
||||||
#moving panes between windows.
|
#moving panes between windows. M to mark panes.
|
||||||
bind-key b command-prompt -p "bring pane from:" "join-pane -s '%%'"
|
unbind j
|
||||||
bind-key s command-prompt -p "sent pane to:" "join-pane -t '%%'"
|
bind-key j join-pane
|
||||||
|
unbind s
|
||||||
|
bind-key s swap-pane
|
||||||
|
|
||||||
#reload conf with r
|
#reload conf with r
|
||||||
bind r source-file ~/.tmux.conf
|
bind r source-file ~/.tmux.conf
|
||||||
|
@ -64,12 +70,11 @@ bind r source-file ~/.tmux.conf
|
||||||
#pass through focus events
|
#pass through focus events
|
||||||
set -g focus-events on
|
set -g focus-events on
|
||||||
|
|
||||||
#customizing ma tmux status line!
|
#customizing status line
|
||||||
#make sure the left status line can hold the stuff we are about to give it.
|
#make sure the status line can hold the stuff we are about to give it.
|
||||||
set -g status-left-length 20
|
set -g status-left-length 40
|
||||||
|
set -g status-right-length 40
|
||||||
#have the left side status line display my hostname.
|
#have the left side status line display my hostname.
|
||||||
set -g status-left " #{host_short} | "
|
set -g status-left " #{host_short} | "
|
||||||
#also lengthen the right side status, by mutch more.
|
|
||||||
set -g status-right-length 60
|
|
||||||
#have the right side status bar display the current battery status and the time/date.
|
#have the right side status bar display the current battery status and the time/date.
|
||||||
set -g status-right 'battery:#(acpi | grep -Eo "[0-9]+%" | tr "\n" " " | sed "s/\s\+$//") | %H:%M %d/%m/%y '
|
set -g status-right 'battery:#(acpi | grep -Eo "[0-9]+%" | tr "\n" " " | sed "s/\s\+$//") | %H:%M %d/%m/%y '
|
||||||
|
|
Loading…
Reference in a new issue