comparison .tmux.conf @ 179:9d71a9f55ea0

tweak UI: copy/paste and title bar
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Wed, 05 Jul 2023 15:07:51 +0100
parents c7d57d158331
children acae526510e2
comparison
equal deleted inserted replaced
178:e1bc9d8d688c 179:9d71a9f55ea0
1 1
2 A# scroll-bar? see https://superuser.com/questions/310251/use-terminal-scrollbar-with-tmux 2 # scroll-bar? see https://superuser.com/questions/310251/use-terminal-scrollbar-with-tmux
3 set -ga terminal-overrides ',xterm*:smcup@:rmcup@' 3 set -ga terminal-overrides ',xterm*:smcup@:rmcup@'
4 4
5 # mousewheel scrolling 5 # mousewheel scrolling
6 set -g mouse on 6 set -g mouse on
7 7
8 # edit mode 8 # edit mode
9 setw -g mode-keys emacs 9 setw -g mode-keys emacs
10 10
11 # cut-paste outside tmux. see https://linuxhint.com/copy-paste-clipboard-tmux/ 11 # cut-paste outside tmux. see https://linuxhint.com/copy-paste-clipboard-tmux/
12 bind C-c run "tmux save-buffer - | xclip -i -sel clipboard" 12 bind C-c run "tmux save-buffer - | /usr/bin/xclip -i -sel clipboard || :"
13 bind C-v run 'tmux set-buffer "$(xclip -o -sel clipboard)"; tmux paste-buffer' 13 bind C-v run 'tmux set-buffer "$(/usr/bin/xclip -o -sel clipboard)"; tmux paste-buffer'
14 14
15 # https://superuser.com/questions/1098077/how-to-keep-terminal-window-title-in-sync-with-tmux-window 15 # https://superuser.com/questions/1098077/how-to-keep-terminal-window-title-in-sync-with-tmux-window
16 set-option -g set-titles on 16 set-option -g set-titles on
17 set-option -g set-titles-string "#S #T" 17 set-option -g set-titles-string "#S #T"