Reminder notifications now play a sound before they happen, so should be harder to miss.
This commit is contained in:
parent
e61d0394c3
commit
4e00211c02
2
i38.sh
2
i38.sh
@ -619,7 +619,7 @@ if [[ -x "/usr/libexec/notification-daemon" ]]; then
|
|||||||
echo 'exec_always --no-startup-id /usr/libexec/notification-daemon -r'
|
echo 'exec_always --no-startup-id /usr/libexec/notification-daemon -r'
|
||||||
fi
|
fi
|
||||||
if command -v remind &> /dev/null && command -v notify-send &> /dev/null ; then
|
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
|
fi
|
||||||
if [[ $dex -eq 0 ]]; then
|
if [[ $dex -eq 0 ]]; then
|
||||||
echo '# Start XDG autostart .desktop files using dex. See also'
|
echo '# Start XDG autostart .desktop files using dex. See also'
|
||||||
|
@ -145,6 +145,12 @@ if ! command -v remind &> /dev/null ; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ $# -ne 0 ]]; then
|
||||||
|
sox -ndqV0 synth .1 tri 600 norm -9 pad .05 repeat
|
||||||
|
notify-send "$*"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
while : ; do
|
while : ; do
|
||||||
action=$(yad --title "I38 - Reminders" --form \
|
action=$(yad --title "I38 - Reminders" --form \
|
||||||
--button="_Add Reminder!gtk-ok":0 \
|
--button="_Add Reminder!gtk-ok":0 \
|
||||||
|
Loading…
Reference in New Issue
Block a user