Last active
June 21, 2017 20:22
-
-
Save swiesend/ebc9d254668c13b84bf8007a6573fe70 to your computer and use it in GitHub Desktop.
desktop notifications with random/shuffled icons
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
SUMMARY=$1 | |
BODY=$2 | |
ICONS=$3 | |
NEXT_ICON=`find $ICONS -type f | shuf -n1` | |
echo "$SUMMARY" | |
echo "$BODY" | |
echo "$NEXT_ICON" | |
notify-send --expire-time=30000 --icon="$NEXT_ICON" "$SUMMARY" "$BODY" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment