tmux: Fix terminal settings

The only reasonable value for default-terminal is tmux-256color or
screen-256color. It's the terminfo entry used for tmux itself, not
the outer terminal.

Also set the overrides for foot.
https://codeberg.org/dnkl/foot/issues/348

The trucolor support can be checked as per
https://jdhao.github.io/2018/10/19/tmux_nvim_true_color
This commit is contained in:
Sanchayan Maity 2022-03-11 18:43:02 +05:30
parent d8e6f1d380
commit 9006378c24

View file

@ -88,9 +88,9 @@ bind -T copy-mode-vi r send-keys -X rectangle-toggle
bind S command-prompt -p 'Save history to filename:' -I '/tmp/tmux.history' 'capture-pane -S - -E -; save-buffer %1 ; delete-buffer' bind S command-prompt -p 'Save history to filename:' -I '/tmp/tmux.history' 'capture-pane -S - -E -; save-buffer %1 ; delete-buffer'
# foot as default terminal. This effects color rendering and typing on # This effects color rendering and typing on terminal.
# terminal. set-option -g default-terminal "tmux-256color"
set-option -g default-terminal "foot" set-option -ga terminal-overrides ",foot:Tc"
# Gruvbox dark color scheme # Gruvbox dark color scheme
set-option -g status "on" set-option -g status "on"