From f55479166864121055025a15aa01d38a7531ce57 Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Wed, 11 May 2022 14:24:20 +0200 Subject: [PATCH] Rename pipeable notify-send --- .bin/notify | 8 ++++++++ .bin/notify-pipe | 4 ---- .bin/stremio | 2 +- 3 files changed, 9 insertions(+), 5 deletions(-) create mode 100755 .bin/notify delete mode 100755 .bin/notify-pipe 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)