so a pretty straight forward question , on zenity theres is 2 buttons on each page , ok and cancel . with my script i manage to assign the zenity code to a variable where i can pick a date for my calendar. I would like to use the cancel button for my agenda , so i renamed it but i don't know how to make it work! thanks
#!/bin/bash
calendarinput=$(zenity --calendar \
--title "Scheduler" \
--text "Pick a date" \
--ok-label "Done" --cancel-label "Agenda" \
--date-format "%A %d/%m/%y")
agenda+="$calendarinput"
unset calendarinput
calendarinput="Done"
if [ "$calendarinput"="Done" ];then
remind=$(zenity --entry)
agenda+="$remind\n"
fi
zenity --info \
--text "$agenda"
This is a only 1 function of my script.There is another list menu before this one.