From 3e24926114b99a0f43db05a4dfee72b47b8e26f3 Mon Sep 17 00:00:00 2001 From: David Aizenberg Date: Sat, 19 Dec 2020 20:51:09 +0400 Subject: [PATCH] . --- i3/config | 1 - scripts/erc20balance.sh | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100755 scripts/erc20balance.sh diff --git a/i3/config b/i3/config index f1a3c74..1579bbe 100644 --- a/i3/config +++ b/i3/config @@ -66,7 +66,6 @@ bindsym $mod+d exec rofi -show run -modi run -theme Arc-Dark bindsym $mod+Shift+d exec rofi -show drun -modi run -show-icons -theme Arc-Dark bindsym F4 exec exec /home/david/dotfiles/scripts/rofi/rofi-openvpn.sh bindsym F3 exec exec /home/david/dotfiles/scripts/rofi/rofi-ssh.sh -bindsym F2 exec rofi -modi window -show window -theme Arc-Dark # There also is the (new) i3-dmenu-desktop which only displays applications # shipping a .desktop file. It is a wrapper around dmenu, so you need that diff --git a/scripts/erc20balance.sh b/scripts/erc20balance.sh new file mode 100755 index 0000000..7e91817 --- /dev/null +++ b/scripts/erc20balance.sh @@ -0,0 +1,5 @@ +#/bin/bash + +source ~/.secrets/ethplorer.api +USDT=$(curl -s "https://api.ethplorer.io/getAddressInfo/$ETH_ADDR?apiKey=$ETH_API_KEY" | jq .tokens[0].balance) +echo USDT: $(expr $USDT / 1000000)$ \ No newline at end of file