Rename pipeable notify-send

master
Hektor Misplon 2022-05-11 14:24:20 +02:00
parent 57ee1bf2fb
commit f554791668
3 changed files with 9 additions and 5 deletions

8
.bin/notify Executable file
View File

@ -0,0 +1,8 @@
#!/usr/bin/env bash
# Pipe into notify-send
#
# e.g. `echo "Hello world" | notify`
read -r msg
notify-send "$msg" "$@"

View File

@ -1,4 +0,0 @@
#!/usr/bin/env bash
read -r msg
notify-send "$msg" "$@"

View File

@ -2,4 +2,4 @@
# Only allow stremio when I have finished my Anki reviews
get-anki-reviews-status && stremio || $(echo "Do your reviews first" | notify-pipe)
get-anki-reviews-status && stremio || $(echo "Do your reviews first" | notify)