From: Lukáš Jiřiště Date: Mon, 17 Jun 2024 11:54:16 +0000 (+0200) Subject: Add a tmux config X-Git-Url: https://git.ljiriste.work/?a=commitdiff_plain;h=c09711a7f4d29a3aefc71da910a006f4edaa0d08;p=dotfiles.git Add a tmux config I don't know if or how much I'm going to use tmux I've created this so I will add it here. --- diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf new file mode 100644 index 0000000..87be671 --- /dev/null +++ b/tmux/.tmux.conf @@ -0,0 +1,16 @@ +set -g mode-keys vi + +bind-key h select-pane -L +bind-key j select-pane -D +bind-key k select-pane -U +bind-key l select-pane -R +bind-key J swap-pane -D +bind-key K swap-pane -U + +bind-key -n C-h select-pane -L +bind-key -n C-j select-pane -D +bind-key -n C-k select-pane -U +bind-key -n C-l select-pane -R + +bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xsel -i -p && xsel -o -p | xsel -i -b" +bind-key p run "xsel -o | tmux load-buffer - ; tmux paste-buffer"