diff --git a/.bin/notify b/.bin/notify new file mode 100755 index 0000000..20a4408 --- /dev/null +++ b/.bin/notify @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +# Pipe into notify-send +# +# e.g. `echo "Hello world" | notify` + +read -r msg +notify-send "$msg" "$@" diff --git a/.bin/notify-pipe b/.bin/notify-pipe deleted file mode 100755 index 4ca5c1a..0000000 --- a/.bin/notify-pipe +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env bash - -read -r msg -notify-send "$msg" "$@" diff --git a/.bin/stremio b/.bin/stremio index bca8d47..0ba21d8 100755 --- a/.bin/stremio +++ b/.bin/stremio @@ -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)