aboutsummaryrefslogtreecommitdiff
path: root/.config
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2023-09-19 23:30:11 +0200
committersrdusr <trevorgray@srdusr.com>2023-09-19 23:30:11 +0200
commit92a843a7a19d5c4bd3a550e476a96a1ace9915b3 (patch)
treeb456c2b69f026e1318bdece9e892abf4a89078c3 /.config
parentf52b9d92f1836b7dce1dd29a46f8f9f6b120d39c (diff)
downloaddotfiles-92a843a7a19d5c4bd3a550e476a96a1ace9915b3.tar.gz
dotfiles-92a843a7a19d5c4bd3a550e476a96a1ace9915b3.zip
Shift up/down copy-mode without prefix
Diffstat (limited to '.config')
-rw-r--r--.config/tmux/tmux.conf16
1 files changed, 11 insertions, 5 deletions
diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf
index c6f2ab8..0d33568 100644
--- a/.config/tmux/tmux.conf
+++ b/.config/tmux/tmux.conf
@@ -42,15 +42,22 @@ bind r source-file ~/.config/tmux/tmux.conf \; display "Reloaded!"
# Use <Prefix>Ctrl+l to clear terminal
bind C-l send-keys 'C-l'
-# Scrollback
-#set -g history-limit 10000
-
# Mouse
set -g mouse on
#set -g mouse-select-pane on
#set -g mouse-resize-pane on
#set -g mouse-select-window on
+# Scrollback
+#set -g history-limit 10000
+
+# Sane scrolling
+set -g terminal-overrides 'xterm*:smcup@:rmcup@'
+
+# Shift up/down copy-mode without prefix
+bind-key -n S-Up copy-mode \; send-key Up
+bind-key -n S-Down copy-mode \; send-key Down
+
# Focus events, allow supported requests from applications to passthrough/run in tmux
set-option -g focus-events on
@@ -180,8 +187,7 @@ if-shell -b 'echo $XDG_SESSION_TYPE | grep -q wayland' "\
bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel 'cat - >/dev/clipboard'; \
bind-key C-M-v run 'cat /dev/clipboard | tmux load-buffer - ; tmux paste-buffer'"
-
-#――――――――――――――――――――――――――――――――――――――――――
+#
### Colors ###