I am using at in coordination with notify-send/dunst as a form of reminders for myself. In an interactive bash session, doing:
$ echo 'notify-send "Test"' | at 12:45PM
works just fine and I see the notification pop up at exactly 12:45PM as expected. However, in a script like:
$ cat ~/.local/bin/remind
#!/bin/bash
echo 'notify-send "$1"' | at "$2"
$ remind "Test" "12:45PM"
I don't see the notification pop up.
The job is registered with at, as seen by:
$ at -l
so I'm not sure what the problem could be. notify-send works just fine outside of the script, and at has correctly found the job, but I still don't see a popup when trying with the second method.
Any ideas?