Rename pipeable notify-send
This commit is contained in:
8
.bin/notify
Executable file
8
.bin/notify
Executable 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" "$@"
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
read -r msg
|
|
||||||
notify-send "$msg" "$@"
|
|
||||||
@@ -2,4 +2,4 @@
|
|||||||
|
|
||||||
# Only allow stremio when I have finished my Anki reviews
|
# 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)
|
||||||
|
|||||||
Reference in New Issue
Block a user