2019-03-20 12:52:43 +00:00
|
|
|
set-option -s default-terminal tmux-256color
|
2019-03-14 20:41:19 +00:00
|
|
|
|
|
|
|
# activate RGB-color support (2.2+)
|
2019-03-20 11:39:39 +00:00
|
|
|
set-option -as terminal-overrides ',*-256color:Tc'
|
2019-03-14 20:23:24 +00:00
|
|
|
|
2019-03-14 19:49:05 +00:00
|
|
|
# Load pretty colors
|
|
|
|
source-file ~/.config/tmux/zenburn2.theme
|
|
|
|
|
2019-03-14 15:27:00 +00:00
|
|
|
# Mouse control
|
2019-03-14 20:03:16 +00:00
|
|
|
set-option -g mouse on
|
2019-03-14 18:47:37 +00:00
|
|
|
|
|
|
|
# Keybindings
|
|
|
|
bind-key -n M-Left previous-window
|
|
|
|
bind-key -n M-Right next-window
|
|
|
|
bind-key -n M-Up switch-client -p
|
|
|
|
bind-key -n M-Down switch-client -n
|
2019-03-14 20:32:24 +00:00
|
|
|
|
|
|
|
set-option -g set-titles on
|
|
|
|
set-option -g set-titles-string '#T'
|
2019-03-20 11:47:07 +00:00
|
|
|
|
|
|
|
# Add some lock capability to Tmux (external commands vlock and cmatrix needed)
|
|
|
|
bind-key C-x lock
|
|
|
|
set-option -g lock-command 'cmatrix -abs ; vlock'
|
|
|
|
#set-option -g lock-after-time 300
|
2021-11-19 12:40:25 +00:00
|
|
|
|
|
|
|
# Undercurl
|
|
|
|
set-option -as terminal-overrides ',*:Smulx=\E[4::%p1%dm' # undercurl support
|
|
|
|
set-option -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m' # underscore colours - needs tmux-3.0
|