dotfiles

My configuration files.
Log | Files | Refs | README

commit 79686a8e37663b633aa1eeb5dc803c08e24cf052
parent d9d82a997e43ab1aabf9b15fb7169824ab372607
Author: Sven Möller <sven@svenmoeller.xyz>
Date:   Tue, 31 May 2022 21:33:05 +0200

tmux conf

Diffstat:
Mtmux/.config/tmux/tmux.conf | 31++++++++++++++++++++-----------
1 file changed, 20 insertions(+), 11 deletions(-)

diff --git a/tmux/.config/tmux/tmux.conf b/tmux/.config/tmux/tmux.conf @@ -1,7 +1,6 @@ #Prefix is Ctrl-a set -g prefix C-a -bind -n C-b send-prefix -bind C-a last-window +bind C-a send-prefix unbind C-b set -sg escape-time 1 @@ -10,6 +9,16 @@ set-window-option -g pane-base-index 1 set -g mouse on set -g default-terminal "tmux-256color" +# y and p as in vim +bind Escape copy-mode +unbind p +bind p paste-buffer +bind -T copy-mode-vi 'v' send -X begin-selection +bind -T copy-mode-vi 'y' send -X copy-selection-and-cancel +bind -T copy-mode-vi 'Space' send -X halfpage-down +bind -T copy-mode-vi 'Bspace' send -X halfpage-up +bind -T copy-mode-vi 'Escape' send -X cancel + # easy-to-remember split pane commands bind | split-window -h bind - split-window -v @@ -22,15 +31,15 @@ bind j select-pane -D bind k select-pane -U bind l select-pane -R -# y and p as in vim -bind Escape copy-mode -unbind p -bind p paste-buffer -bind -T copy-mode-vi 'v' send -X begin-selection -bind -T copy-mode-vi 'y' send -X copy-selection-and-cancel -bind -T copy-mode-vi 'Space' send -X halfpage-down -bind -T copy-mode-vi 'Bspace' send -X halfpage-up -bind -T copy-mode-vi 'Escape' send -X cancel +# moving between windows with vim movement keys +bind -r C-h select-window -t :- +bind -r C-l select-window -t :+ + +# urlscan context view and url view +bind u capture-pane -J \; \ + save-buffer /tmp/tmux-buffer \; \ + new-window -n "urlscan" 'sh -c "urlscan < /tmp/tmux-buffer"' \; \ + delete-buffer bind -n S-F1 run-shell "pulsemixer --toggle-mute" bind -n S-F2 run-shell "pulsemixer --change-volume -5"