Difference between revisions of "Ntfy.sh"

From wikieduonline
Jump to navigation Jump to search
 
(5 intermediate revisions by the same user not shown)
Line 11: Line 11:
 
  echo "$1 "|xargs -I {} osascript -e 'display notification "{}" sound name "submarine"'
 
  echo "$1 "|xargs -I {} osascript -e 'display notification "{}" sound name "submarine"'
  
 +
 +
[[watch --interval]] 5 'ntfy.sh "process is finished"'
 +
[[watch --interval]] 5 "echo "your text" | [[xargs -n1]] ntfy.sh"
 +
 +
== Related ==
 +
* <code>[[gcalcli remind]]</code>
  
 
== See also ==
 
== See also ==

Latest revision as of 13:17, 3 September 2022

#!/bin/bash

function usage() {
    echo "Usage: $(basename $0) text to display"
    exit 0
}

-z $1  && { usage; }

echo "$1 "|xargs -I {} osascript -e 'display notification "{}" sound name "submarine"'


watch --interval 5 'ntfy.sh "process is finished"'
watch --interval 5 "echo "your text" | xargs -n1 ntfy.sh"

Related[edit]

See also[edit]

Advertising: