This commit is contained in:
2025-12-24 11:53:25 +01:00
parent d5755e0070
commit 9faaf160af
3 changed files with 13 additions and 1 deletions

View File

@@ -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
}

6
scripts/show_calendar.sh Executable file
View File

@@ -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

View File

@@ -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"