about summary refs log tree commit diff stats
path: root/linux/conf/skel/.tmux.conf
diff options
context:
space:
mode:
authorSilvino <silvino@bk.ru>2021-02-25 23:22:17 +0000
committerSilvino <silvino@bk.ru>2021-02-25 23:22:17 +0000
commitd12b35a47b9a872ecb5e037f1c2b02e1ea8927fb (patch)
tree8fdac6dfc8cabb9f85a2db3a3bd628cfe44438cd /linux/conf/skel/.tmux.conf
parent0a6b0fc9769daf0932cb207c3285baa31547b489 (diff)
parenta3628fc49db4d88ff3e4067268650710d1da3f6f (diff)
downloaddoc-d12b35a47b9a872ecb5e037f1c2b02e1ea8927fb.tar.gz
merge openbsd branch into develop
new directory layout
Diffstat (limited to 'linux/conf/skel/.tmux.conf')
-rw-r--r--linux/conf/skel/.tmux.conf27
1 files changed, 27 insertions, 0 deletions
diff --git a/linux/conf/skel/.tmux.conf b/linux/conf/skel/.tmux.conf
new file mode 100644
index 0000000..ee127e8
--- /dev/null
+++ b/linux/conf/skel/.tmux.conf
@@ -0,0 +1,27 @@
+set -g default-terminal "screen-256color"
+
+set-window-option -g mode-keys vi
+bind-key -T copy-mode-vi 'v' send-keys -X begin-selection
+bind-key -T copy-mode-vi 'y' send-keys -X copy-selection-and-cancel
+
+
+# Vim style
+# copy tmux's selection buffer into the primary X selection with PREFIX+CTRL+Y
+bind-key u run "tmux save-buffer - | xsel -ib"
+# copy primary X selection into tmux's selection buffer with PREFIX+CTRL+P
+bind-key e run "xsel -ob | tmux load-buffer -"
+
+set-option -g set-titles on
+set-option -g set-titles-string '#S> #I.#P #W'
+
+set -g visual-activity on
+set -g monitor-activity on
+set -g visual-bell on
+set -g bell-action any
+
+## Join windows: <prefix> s, <prefix> j
+bind-key j command-prompt -p "join pane from:"  "join-pane -s '%%'"
+bind-key s command-prompt -p "send pane to:"  "join-pane -t '%%'"
+
+# Torn on mouse
+set -g mouse on