Replace os/+arch/bin/remind with sched alias

This commit is contained in:
Henrik Lissner 2017-10-03 19:14:28 +02:00
parent 3d04b314ef
commit db442d7702
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 5 additions and 9 deletions

View file

@ -1,9 +0,0 @@
#!/usr/bin/env bash
if ! pgrep atd >/dev/null; then
>&2 echo "atd isn't running"
exit 1
fi
msg=$1
shift
echo "notify-send 'Reminder' '$msg'" | at $@

View file

@ -10,6 +10,11 @@ alias ddg='duckduckgo'
alias bt='transmission-remote'
alias ydl='youtube-dl'
alias ydls='youtube-dl --extract-audio --audio-format m4a'
remind() {
local time=$1; shift
sched $time "notify-send --urgency=critical 'Reminder' '$@'; ding";
}
alias r='remind'
# Canonical hex dump; some systems have this symlinked
is-callable hd || alias hd="hexdump -C"