Tmux : Use selection color for selection.
This commit is contained in:
parent
efc2ff18b0
commit
e79bc71713
|
@ -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"
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue