From 77e9aa8538abe388ec3f99a8b6f506ac57c79621 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Thu, 27 Oct 2022 20:36:23 +0100 Subject: [PATCH] Improved colors for status line --- tmux/tmux.conf | 44 +++++++++++++++++++++++++++++--------------- 1 file changed, 29 insertions(+), 15 deletions(-) diff --git a/tmux/tmux.conf b/tmux/tmux.conf index 752b28a..a9b3006 100644 --- a/tmux/tmux.conf +++ b/tmux/tmux.conf @@ -77,6 +77,14 @@ bind C-j display-popup -E "tmux list-sessions | sed -E 's/:.*$//' | grep -v \"^$ bind C-h display-popup -E "htop" + +###################################################################### +# Status Bar # +###################################################################### + +set -g status-bg colour0 +set -g status-fg colour7 + ###################################################################### # Plugin Imports and Configurations # ###################################################################### @@ -107,29 +115,35 @@ set -g status-interval 2 set -g status-right-length 180 set -g status-right '#{tmux_mode_indicator} Online: #{online_status} | #{weather} | %a %d/%m/%Y %H:%M | #{battery_icon_status} #{battery_percentage}' set -g status-left-length 180 -set -g status-left "#{cpu_bg_color} CPU: #{cpu_percentage} #{cpu_temp_bg_color} #{cpu_temp_icon} #{cpu_temp}#{cpu_temp_format} |#{cpu_bg_color} MEM: #{ram_percentage} #[default]| #{simple_git_status}" +set -g status-left "CPU: #{cpu_fg_color}#{cpu_percentage} #{cpu_temp_icon} #{cpu_temp}#{cpu_temp_format}#[default] | MEM: #{ram_fg_color}#{ram_percentage} #[default]| #{simple_git_status}" # More plugin options set -g @menus_trigger '#' -set -g @cpu_low_bg_color "#[bg=#88ff88]" -set -g @cpu_medium_bg_color "#[bg=3]" -set -g @cpu_high_bg_color "#[bg=1]" -set -g @cpu_high_fg_color "#[bg=white]" +set-option -g @tmux-weather-location "London" + +set -g @cpu_low_bg_color "#[bg=0]" +set -g @cpu_low_fg_color "#[fg=3]" +set -g @cpu_medium_bg_color "#[bg=0]" +set -g @cpu_medium_fg_color "#[fg=3]" +set -g @cpu_high_bg_color "#[bg=0]" +set -g @cpu_high_fg_color "#[fg=1]" set -g @cpu_temp_format "%0.1f°" set -g @cpu_temp_low_icon "❄️" set -g @cpu_temp_medium_icon "🌡️" set -g @cpu_temp_high_icon "🔥" - -set -g @cpu_temp_low_bg_color "#[bg=#88ff88]" -set -g @cpu_temp_medium_bg_color "#[bg=3]" -set -g @cpu_temp_high_bg_color "#[bg=1]" -set -g @cpu_temp_high_fg_color "#[bg=white]" - -set -g @ram_low_bg_color "#[bg=#88ff88]" -set -g @ram_medium_bg_color "#[bg=3]" -set -g @ram_high_bg_color "#[bg=1]" -set -g @ram_high_fg_color "#[bg=white]" +set -g @cpu_temp_low_bg_color "#[bg=0]" +set -g @cpu_temp_low_fg_color "#[fg=20]" +set -g @cpu_temp_medium_bg_color "#[bg=0]" +set -g @cpu_temp_medium_fg_color "#[fg=11]" +set -g @cpu_temp_high_bg_color "#[bg=0]" +set -g @cpu_temp_high_fg_color "#[fg=9]" +set -g @ram_low_bg_color "#[bg=0]" +set -g @ram_low_fg_color "#[fg=2]" +set -g @ram_medium_bg_color "#[bg=0]" +set -g @ram_medium_fg_color "#[fg=3]" +set -g @ram_high_bg_color "#[bg=0]" +set -g @ram_high_fg_color "#[fg=2]" # Import TPM run "${XDG_DATA_HOME}/tmux/plugins/tpm/tpm"