From fb15f8e7c9b777a5a569d3eeeda4684f00701492 Mon Sep 17 00:00:00 2001 From: Paolo Donadeo Date: Wed, 24 Dec 2025 11:59:38 +0100 Subject: [PATCH] te --- scripts/main.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/scripts/main.sh b/scripts/main.sh index afb3787..a83b5fa 100755 --- a/scripts/main.sh +++ b/scripts/main.sh @@ -21,12 +21,20 @@ get_tmux_option() { # Esempio: leggi configurazione utente # my_option=$(get_tmux_option "@plugin_option" "default_value") +function get_italian_datetime { + date "+%d/%m/%Y %H:%M" +} + 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 { - 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 {