Browse Source

add tmux 3.2 options; clean up statusline formatting

LawAbidingCactus 5 năm trước cách đây
mục cha
commit
6cf7fa405a
1 tập tin đã thay đổi với 8 bổ sung2 xóa
  1. 8 2
      tmux-colorscheme.conf

+ 8 - 2
tmux-colorscheme.conf

@@ -47,10 +47,16 @@ set-option -g display-panes-colour "#3C3836"
 # clock
 # clock
 set-option -wg clock-mode-colour "#FE8019"
 set-option -wg clock-mode-colour "#FE8019"
 
 
+# copy mode highlighting
+%if #{>=:#{version},3.2}
+    set-option -wg copy-mode-match-style "bg=#A89984,fg=#3C3836"
+    set-option -wg copy-mode-current-match-style "bg=#FE8109,fg=#3C3836"
+%endif
+
 # statusbar formatting
 # statusbar formatting
 # "#fe8019" MUST be in lowercase here (conflicts with statusline alias otherwise)
 # "#fe8019" MUST be in lowercase here (conflicts with statusline alias otherwise)
-set-option -g status-left "#[fg=#3C3836, bg=#A89984]#{?client_prefix,#[bg=#fe8019] #{session_name} #[bg=#A89984], #{session_name} }"
-set-option -g status-right "#[fg=#7C6F64, bg=#3C3836] %Y-%m-%d %H:%M:%S #[fg=#3C3836, bg=#A89984]#{?client_prefix,#[bg=#fe8019] #{host_short} #[bg=#A89984], #{host_short} }"
+set-option -g status-left "#[bg=#A89984, fg=#3C3836]#{?client_prefix,#[bg=#fe8019],#[bg=#A89984]} #{session_name} "
+set-option -g status-right "#[bg=#3C3836, fg=#7C6F64] %Y-%m-%d %H:%M:%S #[bg=#A89984, fg=#3C3836]#{?client_prefix,#[bg=#fe8019],#[bg=#A89984]} #{host_short} "
 
 
 set-option -wg window-status-current-format " #{window_index} #{window_name} "
 set-option -wg window-status-current-format " #{window_index} #{window_name} "
 set-option -wg window-status-format " #{window_index} #{window_name} "
 set-option -wg window-status-format " #{window_index} #{window_name} "