Difference between revisions of "Ntfy.sh"

From wikieduonline
Jump to navigation Jump to search
(Created page with " #!/bin/bash function usage() { echo "Usage: $(basename $0) text to display" exit 0 } -z $1 && { usage; } echo "$1 "|xargs -I {} osascript -e 'di...")
 
Line 1: Line 1:
 +
{{lc}}
 
  #!/bin/bash
 
  #!/bin/bash
 
   
 
   
Line 9: Line 10:
 
   
 
   
 
  echo "$1 "|xargs -I {} osascript -e 'display notification "{}" sound name "submarine"'
 
  echo "$1 "|xargs -I {} osascript -e 'display notification "{}" sound name "submarine"'
 +
 +
 +
 +
{{audio}}

Revision as of 10:32, 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"'


Sound notifications: tput bel, paplay, echo -e '\a', printf '\7', osascript -e 'beep 1', afplay, ping -a, say, ntfy.sh, bip (alias)

Advertising: