Fix tmux bell/selection rendering and mouse issues
Use 256-color codes for bell-style and mode-style to work around tmux 3.6 hex color parsing bug that broke rendering and click targets. Fix terminal-overrides accumulating on reload. Exit copy mode after mouse selection. Update prefix indicator to amber. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -5,7 +5,7 @@ bind C-a send-prefix
|
||||
|
||||
# True color
|
||||
set -g default-terminal "tmux-256color"
|
||||
set -ag terminal-overrides ",xterm-256color:RGB"
|
||||
set -s terminal-overrides "xterm-256color:RGB"
|
||||
set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm'
|
||||
set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m'
|
||||
|
||||
@@ -30,7 +30,7 @@ setw -g mode-keys vi
|
||||
bind -T copy-mode-vi v send -X begin-selection
|
||||
bind -T copy-mode-vi y send -X copy-pipe-and-cancel "pbcopy 2>/dev/null || xclip -selection clipboard 2>/dev/null || xsel --clipboard"
|
||||
bind -T copy-mode-vi MouseDown1Pane send -X clear-selection
|
||||
bind -T copy-mode-vi MouseDragEnd1Pane send -X copy-pipe "pbcopy 2>/dev/null || xclip -selection clipboard 2>/dev/null || xsel --clipboard"
|
||||
bind -T copy-mode-vi MouseDragEnd1Pane send -X copy-pipe-and-cancel "pbcopy 2>/dev/null || xclip -selection clipboard 2>/dev/null || xsel --clipboard"
|
||||
|
||||
# Splits
|
||||
bind | split-window -h -c "#{pane_current_path}"
|
||||
@@ -62,7 +62,7 @@ bind r source-file ~/.tmux.conf \; display "Config reloaded"
|
||||
set -g status-position bottom
|
||||
set -g status-interval 1
|
||||
set -g status-style "fg=#7290B8,bg=default"
|
||||
set -g status-left "#{?client_prefix,#[fg=#2CB494]● ,#[fg=#3C3C3C]● }"
|
||||
set -g status-left "#{?client_prefix,#[fg=colour208]● ,#[fg=#3C3C3C]● }"
|
||||
set -g status-right "#(~/.tmux/network.sh) #[fg=#3C3C3C] #(~/.tmux/battery.sh) #[fg=#3C3C3C] #[fg=#808080]%a %d %b #[fg=#2CB494,bg=#1A1A1A] %H:%M #[default] "
|
||||
set -g status-right-length 80
|
||||
set -g window-status-format "#{?window_last_flag, #[fg=#1A7A64]#I#[fg=default] #W , #I #W }"
|
||||
@@ -70,14 +70,14 @@ set -g window-status-current-format " #[fg=#085040]#I#[fg=#0A0A0A] #W "
|
||||
set -g window-status-separator " "
|
||||
set -g window-status-style "fg=#808080,bg=#1A1A1A"
|
||||
set -g window-status-current-style "fg=#0A0A0A,bg=#2CB494,bold"
|
||||
set -g window-status-bell-style "fg=#1A1A1A,bg=#F88C14,bold"
|
||||
set -g window-status-bell-style "fg=colour234,bg=colour208,bold"
|
||||
set -g monitor-bell on
|
||||
set -g visual-bell off
|
||||
set -g pane-border-style "fg=#3C3C3C"
|
||||
set -g pane-active-border-style "fg=#2CB494"
|
||||
set -g message-style "fg=#2CB494,bg=default"
|
||||
set -g message-command-style "fg=#F88C14,bg=default"
|
||||
set -g mode-style "fg=#1A1A1A,bg=#F88C14,bold"
|
||||
set -g mode-style "fg=colour255,bg=colour30,bold"
|
||||
set -g display-panes-colour "#808080"
|
||||
set -g display-panes-active-colour "#2CB494"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user