-
-
Notifications
You must be signed in to change notification settings - Fork 615
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?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,14 @@ | ||||||
# Requires https://github.com/thewtex/tmux-mem-cpu-load | ||||||
|
||||||
show_cpu_mem() { | ||||||
local index icon color text module | ||||||
|
||||||
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 commentThe 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" There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
2 underscores between mem and text |
||||||
|
||||||
module=$(build_status_module "$index" "$icon" "$color" "$text") | ||||||
|
||||||
echo "$module" | ||||||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Requires https://github.com/tmux-plugins/tmux-net-speed | ||
show_network() { | ||
local index icon color text module | ||
|
||
index=$1 | ||
icon="$(get_tmux_option "@catppuccin_weather_icon" "")" | ||
color="$(get_tmux_option "@catppuccin_weather_color" "$thm_green")" | ||
text="$(get_tmux_option "@catppuccin_weather_text" "#{net_speed}")" | ||
|
||
module=$(build_status_module "$index" "$icon" "$color" "$text") | ||
|
||
echo "$module" | ||
} |
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