swaydots

my dotfiles
git clone https://git.awy.one/swaydots.git
Log | Files | Refs | README | LICENSE

commit f59f0573f92329e4e037726c4f8073b60cc2c2c6
parent 978462aee15506a89e6b3ad321cb5566751943c1
Author: awy <awy@awy.one>
Date:   Wed, 18 Jun 2025 13:08:54 +0300

use symb variable for notification

Diffstat:
M.local/bin/statusbar/sb-price | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.local/bin/statusbar/sb-price b/.local/bin/statusbar/sb-price @@ -18,6 +18,7 @@ case "$denom" in "$target"|usd) denom="usd"; symb="$" ;; gbp) symb="£" ;; eur) symb="€" ;; + rub) symb="₽" ;; btc) symb="" ;; esac interval="@14d" # History contained in chart preceded by '@' (7d = 7 days) @@ -40,7 +41,7 @@ case $BLOCK_BUTTON in 1) setsid -f "$TERMINAL" -e less -Srf "$chartfile" >/dev/null ;; 2) notify-send -u low "$icon Updating..." "Updating $name price..." ; updateme="1" ; showupdate="1" ;; 3) uptime="$(date -d "$filestat" '+%D at %T' | sed "s|$(date '+%D')|Today|")" - notify-send "$icon $name module" "\- <b>Exact price: \$$(cat "$pricefile")</b> + notify-send "$icon $name module" "\- <b>Exact price: $symb$(cat "$pricefile")</b> - Left click for chart of changes. - Middle click to update. - Shows 🔃 if updating prices.