aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/scripts/cryptonotify
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2023-02-10 11:32:00 +0200
committersrdusr <trevorgray@srdusr.com>2023-02-10 11:32:00 +0200
commit009cd3c349ada787d5828d69655c7cd78707ae40 (patch)
tree26e18ca2fe7c6b427eb6ff7f1ad92658f1b9aaf4 /.local/bin/scripts/cryptonotify
parent588984c769470ff070dc89a15fb6c63f1bc74562 (diff)
parent4b073028c17697e2254464e2b54678d07489c14e (diff)
downloaddotfiles-009cd3c349ada787d5828d69655c7cd78707ae40.tar.gz
dotfiles-009cd3c349ada787d5828d69655c7cd78707ae40.zip
Add '.local/bin/scripts/' from commit '972ed253fa17ffc0db8dfde82c0662acaed17d48'
git-subtree-dir: .local/bin/scripts git-subtree-mainline: 4d3d5a0f39a5e504f1296cb401e2dffc62292572 git-subtree-split: 972ed253fa17ffc0db8dfde82c0662acaed17d48
Diffstat (limited to '.local/bin/scripts/cryptonotify')
-rwxr-xr-x.local/bin/scripts/cryptonotify19
1 files changed, 19 insertions, 0 deletions
diff --git a/.local/bin/scripts/cryptonotify b/.local/bin/scripts/cryptonotify
new file mode 100755
index 0000000..47883c3
--- /dev/null
+++ b/.local/bin/scripts/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"