Skip to content

Conversation

davidk55
Copy link

since tmux-cpu already supports ram usage we could just use that

@tiger0922
Copy link

Refer to dreknix's configuration, his configuration allows the memory module changes its color based on the percentage. It is more aligned with the current style of cpu.conf, maybe we can consider this style?

But it does need more tests, so if you want to keep it simple, you can just ignore my suggestion.

set -gq '@ram_low_bg_color' '#{E:@thm_green}'
set -gq '@ram_medium_bg_color' '#{E:@thm_yellow}'
set -gq '@ram_high_bg_color' '#{E:@thm_red}'

set -gq "@catppuccin_${MODULE_NAME}_icon" ' '
set -gq "@catppuccin_${MODULE_NAME}_color" '#{l:#{ram_bg_color}}'
set -gq "@catppuccin_${MODULE_NAME}_text" '#{l:#{ram_percentage}}'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants