- Refactor `main.sh` to support `reminders` and `calendar` commands, displaying tmux popups with localized titles and current date/time. - Add `show_reminders.sh` and `show_calendar.sh` scripts to render reminders and 2-week calendar views using `rem`. - Update `tmux-remind.tmux` to bind `prefix + r` for reminders and `prefix + c` for calendar popups. - Improve script robustness with `set -euo pipefail` and dynamic script directory resolution.
11 lines
397 B
Bash
Executable File
11 lines
397 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
CURRENT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
|
|
# "$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"
|
|
tmux bind-key -T prefix c run-shell "$CURRENT_DIR/scripts/main.sh calendar"
|