This commit is contained in:
2025-12-24 11:59:38 +01:00
parent 52d61aafc2
commit fb15f8e7c9

View File

@@ -21,12 +21,20 @@ get_tmux_option() {
# Esempio: leggi configurazione utente # Esempio: leggi configurazione utente
# my_option=$(get_tmux_option "@plugin_option" "default_value") # my_option=$(get_tmux_option "@plugin_option" "default_value")
function get_italian_datetime {
date "+%d/%m/%Y %H:%M"
}
function show_reminders { function show_reminders {
tmux display-popup -T "Impegni di oggi…" -w 50% -h 50% -x C -y C -E -- "$CURRENT_DIR/show_reminders.sh" local datetime
datetime=$(get_italian_datetime)
tmux display-popup -T "#[align=centre]Impegni di oggi - $datetime" -w 50% -h 50% -x C -y C -E -- "$CURRENT_DIR/show_reminders.sh"
} }
function show_calendar { function show_calendar {
tmux display-popup -T "Prossime 2 settimane…" -w 99% -h 99% -x C -y C -E -- "$CURRENT_DIR/show_calendar.sh" local datetime
datetime=$(get_italian_datetime)
tmux display-popup -T "#[align=centre]Prossime 2 settimane - $datetime" -w 99% -h 99% -x C -y C -E -- "$CURRENT_DIR/show_calendar.sh"
} }
function main { function main {