This commit is contained in:
2025-12-24 11:40:59 +01:00
parent cbbbffffbf
commit 8c2c2aa3a4
2 changed files with 14 additions and 3 deletions

View File

@@ -16,11 +16,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")
main() { function show_reminders {
tput civis tput civis
trap "tput cnorm" EXIT trap "tput cnorm" EXIT
tmux display-popup -T "Impegni di oggi…" -w 50% -h 50% -x C -y C -E # -- "$CURRENT_DIR/scripts/main.sh"
rem -m -b1 -gaa -q -aa -iinclude_todo=1 -@2 rem -m -b1 -gaa -q -aa -iinclude_todo=1 -@2
read -r read -r
} }
main function main {
if [ "$1" == "reminders" ]; then
show_reminders
else
show_popup
fi
}
main "$@"

View File

@@ -4,4 +4,6 @@ CURRENT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# "$CURRENT_DIR/scripts/main.sh" # "$CURRENT_DIR/scripts/main.sh"
tmux bind-key -T prefix r display-popup -T "Impegni di oggi…" -w 50% -h 50% -x C -y C -E -- "$CURRENT_DIR/scripts/main.sh" # tmux bind-key -T prefix r display-popup -T "Impegni di oggi…" -w 50% -h 50% -x C -y C -E -- "$CURRENT_DIR/scripts/main.sh"
tmux bind-key -T prefix r run-shell "$CURRENT_DIR/scripts/main.sh reminders"