From 2f5690f08f7c74ee91789cbe66885a449a9dcd39 Mon Sep 17 00:00:00 2001 From: Paolo Donadeo Date: Wed, 24 Dec 2025 21:47:36 +0100 Subject: [PATCH] feat(calendar): extend calendar view to show next 4 weeks Update both the tmux popup title and the `rem` command in `show_calendar.sh` to display events for the next 4 weeks instead of 2 weeks. --- scripts/main.sh | 2 +- scripts/show_calendar.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/main.sh b/scripts/main.sh index c239e84..4644928 100755 --- a/scripts/main.sh +++ b/scripts/main.sh @@ -33,7 +33,7 @@ function show_reminders { function show_calendar { local datetime datetime=$(get_datetime) - tmux display-popup -T "#[align=centre]Next 2 Weeks - $datetime" -w 99% -h 99% -x C -y C -E -- "$CURRENT_DIR/show_calendar.sh" + tmux display-popup -T "#[align=centre]Next 4 Weeks - $datetime" -w 99% -h 99% -x C -y C -E -- "$CURRENT_DIR/show_calendar.sh" } function main { diff --git a/scripts/show_calendar.sh b/scripts/show_calendar.sh index eebab27..b105642 100755 --- a/scripts/show_calendar.sh +++ b/scripts/show_calendar.sh @@ -2,4 +2,4 @@ export LESSCHARSET=utf-8 TERM_WIDTH=$(tput cols) -rem -m -cu+2 -b1 -gaa -q -@2 --hide-completed-todos -w"$TERM_WIDTH" | less -r +g --status-line -PM"Line %lt/%L (%Pb\%)" +rem -m -cu+4 -b1 -gaa -q -@2 --hide-completed-todos -w"$TERM_WIDTH" | less -r +g --status-line -PM"Line %lt/%L (%Pb\%)"