diff options
| author | srdusr <trevorgray@srdusr.com> | 2022-11-28 21:00:44 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2022-11-28 21:00:44 +0200 |
| commit | 01428c9f51dfd63562c6847a1ead7a33d1faf243 (patch) | |
| tree | 3291d4ccf0e3f94cd18d09be2389763b6e44a14d /cryptonotify | |
| parent | 3270604c4bfee5d0f5e167950b595fb1469b0d22 (diff) | |
| download | dotfiles-01428c9f51dfd63562c6847a1ead7a33d1faf243.tar.gz dotfiles-01428c9f51dfd63562c6847a1ead7a33d1faf243.zip | |
Add cryptonotify
Diffstat (limited to 'cryptonotify')
| -rwxr-xr-x | cryptonotify | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/cryptonotify b/cryptonotify new file mode 100755 index 0000000..47883c3 --- /dev/null +++ b/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" |
