diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 56fb66d..20eee38 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -44,16 +44,22 @@ bind -r J resize-pane -D 5 bind -r K resize-pane -U 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 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 r send-keys -X rectangle-toggle +#display pane numbers +unbind d +bind-key d display-panes -#moving panes between windows. -bind-key b command-prompt -p "bring pane from:" "join-pane -s '%%'" -bind-key s command-prompt -p "sent pane to:" "join-pane -t '%%'" +#moving panes between windows. M to mark panes. +unbind j +bind-key j join-pane +unbind s +bind-key s swap-pane #reload conf with r bind r source-file ~/.tmux.conf @@ -64,12 +70,11 @@ bind r source-file ~/.tmux.conf #pass through focus events set -g focus-events on -#customizing ma tmux status line! - #make sure the left status line can hold the stuff we are about to give it. - set -g status-left-length 20 +#customizing status line + #make sure the status line can hold the stuff we are about to give it. + set -g status-left-length 40 + set -g status-right-length 40 #have the left side status line display my hostname. 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. set -g status-right 'battery:#(acpi | grep -Eo "[0-9]+%" | tr "\n" " " | sed "s/\s\+$//") | %H:%M %d/%m/%y '