Add support to tmux-pomodoro-plus plugin in status bar (#241)

* Add support to tmux-pomodoro-plus plugin in status bar

* Update README.md with setup information for the pomodoro module
This commit is contained in:
Daniel Nocito 2024-07-02 12:13:24 -03:00 committed by GitHub
parent e7cd05facc
commit 893917360d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 35 additions and 0 deletions

14
status/pomodoro_plus.sh Normal file
View file

@ -0,0 +1,14 @@
# Requires https://github.com/olimorris/tmux-pomodoro-plus
show_pomodoro_plus() {
local index icon color text module
index=$1
icon="$( get_tmux_option "@catppuccin_<module_name>_icon" "" )"
color="$( get_tmux_option "@catppuccin_<module_name>_color" "$thm_orange" )"
text="$( get_tmux_option "@catppuccin_<module_name>_text" "#{pomodoro_status}" )"
module=$( build_status_module "$index" "$icon" "$color" "$text" )
echo "$module"
}