Change tmux colors based on background

This commit is contained in:
Asocia 2021-07-15 16:00:31 +03:00
parent 293fb7c111
commit 6cd63335d4

View File

@ -100,14 +100,14 @@ set -g pane-border-style fg='colour238'
setw -g window-status-style fg='colour121',bg='colour235','none' setw -g window-status-style fg='colour121',bg='colour235','none'
setw -g window-status-activity-style bg='colour235',fg='colour154','none' setw -g window-status-activity-style bg='colour235',fg='colour154','none'
setw -g window-status-separator '' setw -g window-status-separator ''
set -g status-left '#[fg=colour232,bg=colour154] #S #[fg=colour154,bg=colour238,nobold,nounderscore,noitalics]#[fg=colour222,bg=colour238] #W #[fg=colour238,bg=colour236,nobold,nounderscore,noitalics]' set -g status-left '#[fg=colour0,bg=colour3] #S #[fg=colour3,bg=colour4,nobold,nounderscore,noitalics]#[fg=colour0,bg=colour4] #W #[fg=colour4,bg=colour0,nobold,nounderscore,noitalics]'
# above status + whoami and uptime # above status + whoami and uptime
# set -g status-left '#[fg=colour232,bg=colour154] #S #[fg=colour154,bg=colour238,nobold,nounderscore,noitalics]#[fg=colour222,bg=colour238] #W #[fg=colour238,bg=colour235,nobold,nounderscore,noitalics]#[fg=colour121,bg=colour235] #(whoami)  #(uptime | cut -d " " -f 1,2,3) #[fg=colour235,bg=colour235,nobold,nounderscore,noitalics]' # set -g status-left '#[fg=colour232,bg=colour154] #S #[fg=colour154,bg=colour238,nobold,nounderscore,noitalics]#[fg=colour222,bg=colour238] #W #[fg=colour238,bg=colour235,nobold,nounderscore,noitalics]#[fg=colour121,bg=colour235] #(whoami)  #(uptime | cut -d " " -f 1,2,3) #[fg=colour235,bg=colour235,nobold,nounderscore,noitalics]'
set -g status-right '#[fg=colour235,bg=colour235,nobold,nounderscore,noitalics]#[fg=colour121,bg=colour235] %R  %a  %h-%d #[fg=colour238,bg=colour235,nobold,nounderscore,noitalics]#[fg=colour222,bg=colour238] #{battery_color_charge_fg}#[bg=colour238]#{battery_icon} #{battery_percentage}#[fg=colour154,bg=colour238,nobold,nounderscore,noitalics] #{prefix_highlight}'
setw -g window-status-format '#[fg=colour235,bg=colour235,nobold,nounderscore,noitalics]#[default] #I  #W #[fg=colour235,bg=colour235,nobold,nounderscore,noitalics]' setw -g window-status-current-format '#[fg=colour0,bg=colour4,bold,nounderscore,noitalics]#[fg=colour0,bg=colour4] #I  #W  #F #[fg=colour4,bg=colour0,nobold,nounderscore,noitalics]'
setw -g window-status-current-format '#[fg=colour235,bg=colour238,nobold,nounderscore,noitalics]#[fg=colour222,bg=colour238] #I  #W  #F #[fg=colour238,bg=colour235,nobold,nounderscore,noitalics]' setw -g window-status-format '#[fg=colour0,bg=colour10,nobold,nounderscore,noitalics]#[fg=colour0,bg=colour10] #I  #W #[fg=colour10,bg=colour0,nobold,nounderscore,noitalics]'
set -g status-right '#[fg=colour235,bg=colour0,nobold,nounderscore,noitalics]#[fg=colour121,bg=colour235] %R  %a  %h-%d #[fg=colour238,bg=colour235,nobold,nounderscore,noitalics]#[fg=colour222,bg=colour238] #{battery_color_charge_fg}#[bg=colour238]#{battery_icon} #{battery_percentage}#[fg=colour3,bg=colour238,nobold,nounderscore,noitalics] #{prefix_highlight}'
set -g status-interval 1 set -g status-interval 1
@ -116,10 +116,10 @@ set-option -g automatic-rename-format '#{b:pane_current_path}'
# Plugin Customizations # Plugin Customizations
set -g @prefix_highlight_fg 'colour232' # default is 'colour231' set -g @prefix_highlight_fg 'colour0'
set -g @prefix_highlight_bg 'colour154' # default is 'colour04' set -g @prefix_highlight_bg 'colour3'
set -g @prefix_highlight_sync_mode_attr 'fg=colour21,bg=colour154' # default is 'fg=default,bg=yellow' set -g @prefix_highlight_sync_mode_attr 'fg=colour0,bg=colour3'
set -g @prefix_highlight_copy_mode_attr 'fg=colour160,bg=colour154' # default is 'fg=default,bg=yellow' set -g @prefix_highlight_copy_mode_attr 'fg=colour0,bg=colour3'
set -g @prefix_highlight_show_copy_mode 'on' set -g @prefix_highlight_show_copy_mode 'on'
set -g @prefix_highlight_show_sync_mode 'on' set -g @prefix_highlight_show_sync_mode 'on'
set -g @prefix_highlight_sync_prompt 'SYNC' set -g @prefix_highlight_sync_prompt 'SYNC'