Merge branch 'main' into feat-load-module

This commit is contained in:
Valentin Uveges 2024-03-07 07:32:12 +02:00 committed by GitHub
commit 6cb9e77e7b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 63 additions and 20 deletions

11
status/uptime.sh Normal file
View file

@ -0,0 +1,11 @@
# Requires https://github.com/robhurring/tmux-uptime.
show_uptime() {
local index=$1
local icon="$(get_tmux_option "@catppuccin_uptime_icon" "󰔟")"
local color="$(get_tmux_option "@catppuccin_uptime_color" "$thm_green")"
local text="$(get_tmux_option "@catppuccin_uptime_text" "#{uptime}")"
local module=$( build_status_module "$index" "$icon" "$color" "$text" )
echo "$module"
}