Howto User Defined Modules in v2.1.2 #505
-
I have some User Defined Modules from v.0.3.0 created by following instructions from https://github.com/catppuccin/tmux/tree/v0.3.0/custom How do I migrate these User Defined Modules to v2.1.2? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
There's some information missing here. Exactly what are you struggling with? There is a document that describes how to create your own modules in the current version, do you need help finding it? |
Beta Was this translation helpful? Give feedback.
-
I was not able to find any document relating to custom modules for the current version. I would appreciate if you could point me to the document. So this is my existing setup for v0.3.0 which I having a hard time migrating: In # shellcheck shell=bash
show_free_mem() { # This must match the module name!
local index icon color text module
index=$1
icon="$(get_tmux_option "@catppuccin_test_icon" "")"
color="$(get_tmux_option "@catppuccin_test_color" "$thm_green")"
text="$(get_tmux_option "@catppuccin_test_text" "#( $HOME/.tmux/plugins/tmux/custom/free_mem.bin )")"
module=$(build_status_module "$index" "$icon" "$color" "$text")
echo "$module"
} The |
Beta Was this translation helpful? Give feedback.
https://github.com/catppuccin/tmux/blob/main/docs/tutorials/02-custom-status.md
Also: https://stackoverflow.com/questions/10376206/what-is-the-preferred-bash-shebang