test
This commit is contained in:
@@ -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"
|
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 {
|
function main {
|
||||||
if [ "$1" == "reminders" ]; then
|
if [ "$1" == "reminders" ]; then
|
||||||
show_reminders
|
show_reminders
|
||||||
else
|
else
|
||||||
show_popup
|
show_calendar
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
6
scripts/show_calendar.sh
Executable file
6
scripts/show_calendar.sh
Executable 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
|
||||||
@@ -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 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 r run-shell "$CURRENT_DIR/scripts/main.sh reminders"
|
||||||
|
tmux bind-key -T prefix c run-shell "$CURRENT_DIR/scripts/main.sh calendar"
|
||||||
|
|||||||
Reference in New Issue
Block a user