From 553cb2204b0bf27afe13c6332f5679bbd47172a0 Mon Sep 17 00:00:00 2001 From: srdusr Date: Wed, 24 Sep 2025 05:01:20 +0200 Subject: Update/Overhaul --- unix/utils/cryptonotify | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 unix/utils/cryptonotify (limited to 'unix/utils/cryptonotify') diff --git a/unix/utils/cryptonotify b/unix/utils/cryptonotify new file mode 100755 index 0000000..47883c3 --- /dev/null +++ b/unix/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" -- cgit v1.2.3