From 9faaf160af4eccbd2103023f6a993936e9ae3bcb Mon Sep 17 00:00:00 2001 From: Paolo Donadeo Date: Wed, 24 Dec 2025 11:53:25 +0100 Subject: [PATCH] test --- scripts/main.sh | 7 ++++++- scripts/show_calendar.sh | 6 ++++++ tmux-remind.tmux | 1 + 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100755 scripts/show_calendar.sh diff --git a/scripts/main.sh b/scripts/main.sh index 0bc0da7..4838853 100755 --- a/scripts/main.sh +++ b/scripts/main.sh @@ -25,11 +25,16 @@ function show_reminders { tmux display-popup -T "Impegni di oggi…" -w 50% -h 50% -x C -y C -E -- "$CURRENT_DIR/show_reminders.sh" } +function show_calendar { + tmux display-popup -T "Calendario Mensile" -w 80% -h 80% -x C -y C -E -- "$CURRENT_DIR/show_calendar.sh" + tmux display-popup -T "Prossime 2 settimane…" -w 99% -h 99% -x C -y C -E -- "$CURRENT_DIR/show_reminders.sh" +} + function main { if [ "$1" == "reminders" ]; then show_reminders else - show_popup + show_calendar fi } diff --git a/scripts/show_calendar.sh b/scripts/show_calendar.sh new file mode 100755 index 0000000..12c2152 --- /dev/null +++ b/scripts/show_calendar.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +tput civis +trap "tput cnorm" EXIT +rem -m -cu+2 -b1 -gaa -q -@2 --hide-completed-todos +read -r diff --git a/tmux-remind.tmux b/tmux-remind.tmux index c644b41..266b0c8 100755 --- a/tmux-remind.tmux +++ b/tmux-remind.tmux @@ -7,3 +7,4 @@ CURRENT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" # 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" +tmux bind-key -T prefix c run-shell "$CURRENT_DIR/scripts/main.sh calendar"