te
This commit is contained in:
@@ -21,12 +21,20 @@ get_tmux_option() {
|
||||
# Esempio: leggi configurazione utente
|
||||
# my_option=$(get_tmux_option "@plugin_option" "default_value")
|
||||
|
||||
function get_italian_datetime {
|
||||
date "+%d/%m/%Y %H:%M"
|
||||
}
|
||||
|
||||
function show_reminders {
|
||||
tmux display-popup -T "Impegni di oggi…" -w 50% -h 50% -x C -y C -E -- "$CURRENT_DIR/show_reminders.sh"
|
||||
local datetime
|
||||
datetime=$(get_italian_datetime)
|
||||
tmux display-popup -T "#[align=centre]Impegni di oggi - $datetime" -w 50% -h 50% -x C -y C -E -- "$CURRENT_DIR/show_reminders.sh"
|
||||
}
|
||||
|
||||
function show_calendar {
|
||||
tmux display-popup -T "Prossime 2 settimane…" -w 99% -h 99% -x C -y C -E -- "$CURRENT_DIR/show_calendar.sh"
|
||||
local datetime
|
||||
datetime=$(get_italian_datetime)
|
||||
tmux display-popup -T "#[align=centre]Prossime 2 settimane - $datetime" -w 99% -h 99% -x C -y C -E -- "$CURRENT_DIR/show_calendar.sh"
|
||||
}
|
||||
|
||||
function main {
|
||||
|
||||
Reference in New Issue
Block a user