aboutsummaryrefslogtreecommitdiff
path: root/common/scripts/utils/cryptonotify
diff options
context:
space:
mode:
Diffstat (limited to 'common/scripts/utils/cryptonotify')
-rwxr-xr-xcommon/scripts/utils/cryptonotify19
1 files changed, 19 insertions, 0 deletions
diff --git a/common/scripts/utils/cryptonotify b/common/scripts/utils/cryptonotify
new file mode 100755
index 0000000..47883c3
--- /dev/null
+++ b/common/scripts/utils/cryptonotify
@@ -0,0 +1,19 @@
+#!/bin/sh
+source cryptocheck
+Output=
+for file in ~/.cache/crypto/*
+do
+ if [ ! -z "$Output" ]; then
+ if [ ! $(basename $file) = "time" ]; then
+ Output="$Output\n$(cat $file)"
+ fi
+ else
+ if [ ! $(basename $file) = "time" ]; then
+ Output="$Output$(cat $file)"
+ fi
+ fi
+
+done
+
+Output="$Output\n$(cat ~/.cache/crypto/time)"
+notify-send "Crypto Prices" "$Output"