Merge branch 'master' of ssh://git.stormux.org/storm/I38

This commit is contained in:
Jeremiah Ticket 2023-09-26 06:56:27 -06:00
commit 1a0ad68ad2
2 changed files with 13 additions and 3 deletions

2
i38.sh
View File

@ -619,7 +619,7 @@ if [[ -x "/usr/libexec/notification-daemon" ]]; then
echo 'exec_always --no-startup-id /usr/libexec/notification-daemon -r'
fi
if command -v remind &> /dev/null && command -v notify-send &> /dev/null ; then
echo "exec_always --no-startup-id $(command -v remind) -z '-k:notify-send %s &' ${HOME}/.reminders < /dev/null > /dev/null 2>&1"
echo "exec_always --no-startup-id $(command -v remind) -z '-k:${HOME}/.config/i3/scripts/reminder.sh %s &' ${HOME}/.reminders < /dev/null > /dev/null 2>&1"
fi
if [[ $dex -eq 0 ]]; then
echo '# Start XDG autostart .desktop files using dex. See also'

View File

@ -94,8 +94,12 @@ add_weekly_reminder() {
}
view_reminders() {
mapfile -t lines < ~/.reminders
if ! [[ -r ~/.reminders ]]; then
error "No reminders found."
return
fi
mapfile -t lines < ~/.reminders
# Create an empty array to store cleaned-up reminders
yadMenu=()
@ -145,6 +149,12 @@ if ! command -v remind &> /dev/null ; then
exit 1
fi
if [[ $# -ne 0 ]]; then
sox -ndqV0 synth .1 tri 600 norm -9 pad .05 repeat
notify-send "$*"
exit 0
fi
while : ; do
action=$(yad --title "I38 - Reminders" --form \
--button="_Add Reminder!gtk-ok":0 \