diff --git a/catppuccin.tmux b/catppuccin.tmux index 7244779..5186560 100755 --- a/catppuccin.tmux +++ b/catppuccin.tmux @@ -197,7 +197,8 @@ build_status_module() { load_modules() { local modules_list=$1 - local modules_custom_path=$PLUGIN_DIR/custom + local custom_path="$(get_tmux_option "@catppuccin_custom_plugin_dir" "${PLUGIN_DIR}/custom")" + local modules_custom_path=$custom_path local modules_status_path=$PLUGIN_DIR/status local modules_window_path=$PLUGIN_DIR/window diff --git a/custom/README.md b/custom/README.md index 6f7dbd6..e55aa9b 100644 --- a/custom/README.md +++ b/custom/README.md @@ -31,6 +31,13 @@ show_() { # save this module in a file with the name . } ``` +## Configure custom modules path + +You can configure a custom path for your modules by setting the `@catppuccin_custom_plugin_dir` option. +```sh +set -g @catppuccin_custom_plugin_dir "" +``` + To use the output of a command, use e.g. `local text="$(get_tmux_option "@catppuccin_test_text" "#(date +%T)")"`. To use the output of a script, use e.g. `local text="$(get_tmux_option "@catppuccin_test_text" "#($HOME/my_script.sh)")"`.