Tmux : Use selection color for selection.

This commit is contained in:
Dmitry Voronin 2024-05-20 17:07:48 +03:00
parent efc2ff18b0
commit e79bc71713
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -1,9 +1,8 @@
{ key, style, ... }: let { key, style, ... }: let
mod = key.tmux.mod; mod = key.tmux.mod;
accent = style.color.accent; fg = style.color.bg.dark;
bg = style.color.bg.dark; selection = style.color.selection;
fg = style.color.fg.light;
in { in {
text = '' text = ''
setw -g mode-keys vi setw -g mode-keys vi
@ -12,6 +11,6 @@ in {
bind -T copy-mode-vi ${key.tmux.copy.select} send -X begin-selection bind -T copy-mode-vi ${key.tmux.copy.select} send -X begin-selection
bind -T copy-mode-vi ${key.tmux.copy.copy} send-keys -X copy-pipe-and-cancel "pbcopy" bind -T copy-mode-vi ${key.tmux.copy.copy} send-keys -X copy-pipe-and-cancel "pbcopy"
set -g mode-style "fg=#${bg} bg=#${accent} bold" set -g mode-style "fg=#${fg} bg=#${selection} bold"
''; '';
} }