From e6c5c433005a2d1c4712894d7ececbefceec21df Mon Sep 17 00:00:00 2001 From: _N0x Date: Mon, 11 Oct 2021 18:47:55 +0200 Subject: [PATCH] added tmux theming --- tmux/.tmux.conf | 23 +++++++++++++++++++++++ tmux/.tmux/plugins/nord-tmux | 1 + tmux/.tmux/plugins/tmux-sensible | 1 + tmux/.tmux/plugins/tpm | 1 + 4 files changed, 26 insertions(+) create mode 160000 tmux/.tmux/plugins/nord-tmux create mode 160000 tmux/.tmux/plugins/tmux-sensible create mode 160000 tmux/.tmux/plugins/tpm diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index 3dbb770..3098d69 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -44,6 +44,20 @@ bind -T copy-mode-vi PageUp send-keys -X page-up bind -T copy-mode-vi WheelUpPane select-pane \; send-keys -X -N 2 scroll-up bind -T copy-mode-vi WheelDownPane select-pane \; send-keys -X -N 2 scroll-down + +# split panes using | and - +bind | split-window -h +bind - split-window -v +unbind '"' +unbind % + +# switch panes using Alt-arrow without prefix +bind -n M-Left select-pane -L +bind -n M-Right select-pane -R +bind -n M-Up select-pane -U +bind -n M-Down select-pane -D + + # wrap default shell in reattach-to-user-namespace if available # there is some hack with `exec & reattach`, credits to "https://github.com/gpakosz/.tmux" # don't really understand how it works, but at least window are not renamed to "reattach-to-user-namespace" @@ -73,3 +87,12 @@ bind -T copy-mode-vi MouseDown1Pane select-pane \;\ # iTerm2 works with clipboard out of the box, set-clipboard already set to "external" # tmux show-options -g -s set-clipboard # set-clipboard on|external + +# List of plugins +set -g @plugin 'tmux-plugins/tpm' +set -g @plugin 'tmux-plugins/tmux-sensible' + +# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) +run '~/.tmux/plugins/tpm/tpm' + +set -g @plugin "arcticicestudio/nord-tmux" diff --git a/tmux/.tmux/plugins/nord-tmux b/tmux/.tmux/plugins/nord-tmux new file mode 160000 index 0000000..5bb2086 --- /dev/null +++ b/tmux/.tmux/plugins/nord-tmux @@ -0,0 +1 @@ +Subproject commit 5bb2086690e3e27378794fb68ed98e91f0cce059 diff --git a/tmux/.tmux/plugins/tmux-sensible b/tmux/.tmux/plugins/tmux-sensible new file mode 160000 index 0000000..5d089e4 --- /dev/null +++ b/tmux/.tmux/plugins/tmux-sensible @@ -0,0 +1 @@ +Subproject commit 5d089e418efb1a00f47654014ed085deb3d0c878 diff --git a/tmux/.tmux/plugins/tpm b/tmux/.tmux/plugins/tpm new file mode 160000 index 0000000..693e5a2 --- /dev/null +++ b/tmux/.tmux/plugins/tpm @@ -0,0 +1 @@ +Subproject commit 693e5a2a0f6acfd2666882655d5dfd32e8c6c50b