From c09711a7f4d29a3aefc71da910a006f4edaa0d08 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Luk=C3=A1=C5=A1=20Ji=C5=99i=C5=A1t=C4=9B?= Date: Mon, 17 Jun 2024 13:54:16 +0200 Subject: [PATCH] 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. --- tmux/.tmux.conf | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tmux/.tmux.conf 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" -- 2.30.2