Add tmux-clima as another module for weather (#161)
* Add tmux-clima as a module * Update tmux option names according to the clima module * Add README for tmux-clima * Update README.md according to suggestions * Remove unnecessary readme part --------- Co-authored-by: vdbewout <vdbewout@gmail.com>
This commit is contained in:
parent
c0861b7861
commit
d0371badc7
2 changed files with 39 additions and 5 deletions
11
status/clima.sh
Normal file
11
status/clima.sh
Normal file
|
@ -0,0 +1,11 @@
|
|||
# Requires https://github.com/vascomfnunes/tmux-clima
|
||||
show_clima() {
|
||||
local index=$1
|
||||
local icon="$(get_tmux_option "@catppuccin_clima_icon" "")"
|
||||
local color="$(get_tmux_option "@catppuccin_clima_color" "$thm_yellow")"
|
||||
local text="$(get_tmux_option "@catppuccin_clima_text" "#{clima}")"
|
||||
|
||||
local module=$( build_status_module "$index" "$icon" "$color" "$text" )
|
||||
|
||||
echo "$module"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue