Test
This commit is contained in:
@@ -16,11 +16,20 @@ get_tmux_option() {
|
||||
# Esempio: leggi configurazione utente
|
||||
# my_option=$(get_tmux_option "@plugin_option" "default_value")
|
||||
|
||||
main() {
|
||||
function show_reminders {
|
||||
tput civis
|
||||
trap "tput cnorm" EXIT
|
||||
tmux display-popup -T "Impegni di oggi…" -w 50% -h 50% -x C -y C -E # -- "$CURRENT_DIR/scripts/main.sh"
|
||||
rem -m -b1 -gaa -q -aa -iinclude_todo=1 -@2
|
||||
read -r
|
||||
}
|
||||
|
||||
main
|
||||
function main {
|
||||
if [ "$1" == "reminders" ]; then
|
||||
show_reminders
|
||||
else
|
||||
show_popup
|
||||
fi
|
||||
}
|
||||
|
||||
main "$@"
|
||||
|
||||
@@ -4,4 +4,6 @@ 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 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"
|
||||
|
||||
Reference in New Issue
Block a user