-
-
Notifications
You must be signed in to change notification settings - Fork 631
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add cpu_mem & network module #194
base: main
Are you sure you want to change the base?
Conversation
This module depends on [tmux-mem-cpu-load](https://github.com/thewtex/tmux-mem-cpu-load). | ||
|
||
#### Install | ||
The preferred way to install tmux-cpu is using [TPM](https://github.com/tmux-plugins/tpm). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clarify that this will build additional software
index=$1 | ||
icon="$(get_tmux_option "@catppuccin_cpu_mem_icon" "")" | ||
color="$(get_tmux_option "@catppuccin_cpu_mem_color" "$thm_blue")" | ||
text="$(get_tmux_option "@catppuccin_cpu_mem__text" "#($TMUX_PLUGIN_MANAGER_PATH/tmux-mem-cpu-load/tmux-mem-cpu-load --cpu-mode 2 --averages-count 0 --interval 2)")" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add an extra option "@catppuccin_cpu_mem_args/options" with as default "--cpu-mode 2 --averages-count 0 --interval 2"
index=$1 | ||
icon="$(get_tmux_option "@catppuccin_cpu_mem_icon" "")" | ||
color="$(get_tmux_option "@catppuccin_cpu_mem_color" "$thm_blue")" | ||
text="$(get_tmux_option "@catppuccin_cpu_mem__text" "#($TMUX_PLUGIN_MANAGER_PATH/tmux-mem-cpu-load/tmux-mem-cpu-load --cpu-mode 2 --averages-count 0 --interval 2)")" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
text="$(get_tmux_option "@catppuccin_cpu_mem__text" "#($TMUX_PLUGIN_MANAGER_PATH/tmux-mem-cpu-load/tmux-mem-cpu-load --cpu-mode 2 --averages-count 0 --interval 2)")" | |
text="$(get_tmux_option "@catppuccin_cpu_mem_text" "#($TMUX_PLUGIN_MANAGER_PATH/tmux-mem-cpu-load/tmux-mem-cpu-load --cpu-mode 2 --averages-count 0 --interval 2)")" |
2 underscores between mem and text
Hey, @lixin-wei, I'm having issues with the network module. It works when I install the plugin using How can I fix it? Screen.Recording.2024-07-12.at.8.51.41.AM.mov |
@gambhirsharma is |
Now it's showing the module but it doesn't render the internet speed text. Do I need to do something else to fix this? This is what my |
That looks like a problem with the plugin not catppuccin/tmux. Maybe set interfaces like in the README of the plugin? |
Add 2 handy modules:
cpu_mem
andnetwork
, as the following picture shows.