-
Notifications
You must be signed in to change notification settings - Fork 2
/
crypto
72 lines (64 loc) · 3.28 KB
/
crypto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
######################
# - Conky settings - #
######################
update_interval 1
total_run_times 0
imlib_cache_size 0
double_buffer yes
no_buffers yes
#####################
# - Text settings - #
#####################
use_xft yes
xftfont Ubuntu Mono:size=9
override_utf8_locale yes
text_buffer_size 2048
#############################
# - Window specifications - #
#############################
own_window_class Conky
own_window yes
own_window_type desktop
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
#own_window_argb_visual yes
#own_window_argb_value 100
alignment tr
#gap_x -10
gap_y 34
minimum_size 160 250
default_bar_size 60 8
#########################
# - Graphics settings - #
#########################
draw_shades no
default_color efefef
default_shade_color 1d1d1d
color0 ffffff
color1 ffffff
color2 ffffff
TEXT
${color #ddaa00}Bitcoin (BTC) $alignr \#${execi 300 cat ./tmp/bitcoin | jq '.[0].rank' -r }${color}${execi 30 python ./crypto.py }
1h: ${execi 300 cat ./tmp/bitcoin | jq '.[0].percent_change_1h' -r }%$alignr 24h: ${execi 300 cat ./tmp/bitcoin | jq '.[0].percent_change_24h' -r }%
$$ ${execi 300 cat ./tmp/bitcoin | jq '.[0].price_usd' -r | awk '{printf "%.2f\n",$1}' } USD${color}
$$ ${execi 300 cat ./tmp/bitcoin | jq '.[0].price_brl' -r | awk '{printf "%.2f\n",$1}' } BRL
Last updated: ${execi 10 cat ./tmp/bitcoin | jq '.[0].last_updated' -r | date +%H:%M:%S }
${color #ddaa00}RaiBlocks (XRB) $alignr \#${execi 300 cat ./tmp/raiblocks | jq '.[0].rank' -r }${color}
1h: ${execi 300 cat ./tmp/raiblocks | jq '.[0].percent_change_1h' -r }%$alignr 24h: ${execi 300 cat ./tmp/raiblocks | jq '.[0].percent_change_24h' -r }%
$$ ${execi 300 cat ./tmp/raiblocks | jq '.[0].price_usd' -r | awk '{printf "%.2f\n",$1}' } USD${color}
$$ ${execi 300 cat ./tmp/raiblocks | jq '.[0].price_brl' -r | awk '{printf "%.2f\n",$1}' } BRL
${execi 300 cat ./tmp/raiblocks | jq '.[0].price_btc' -r } BTC
Last updated: ${execi 10 cat ./tmp/raiblocks | jq '.[0].last_updated' -r | date +%H:%M:%S }
${color #ddaa00}Request (REQ) $alignr \#${execi 300 cat ./tmp/request-network | jq '.[0].rank' -r }${color}
1h: ${execi 300 cat ./tmp/request-network | jq '.[0].percent_change_1h' -r }%$alignr 24h: ${execi 300 cat ./tmp/request-network | jq '.[0].percent_change_24h' -r }%
$$ ${execi 300 cat ./tmp/request-network | jq '.[0].price_usd' -r | awk '{printf "%.2f\n",$1}' } USD${color}
$$ ${execi 300 cat ./tmp/request-network | jq '.[0].price_brl' -r | awk '{printf "%.2f\n",$1}' } BRL
${execi 300 cat ./tmp/request-network | jq '.[0].price_btc' -r } BTC
Last updated: ${execi 10 cat ./tmp/request-network | jq '.[0].last_updated' -r | date +%H:%M:%S }
${color #ddaa00}Xtrabytes (XBY) $alignr \#${execi 300 cat ./tmp/xtrabytes | jq '.[0].rank' -r }${color}
1h: ${execi 300 cat ./tmp/xtrabytes | jq '.[0].percent_change_1h' -r }%$alignr 24h: ${execi 300 cat ./tmp/xtrabytes | jq '.[0].percent_change_24h' -r }%
$$ ${execi 300 cat ./tmp/xtrabytes | jq '.[0].price_usd' -r | awk '{printf "%.2f\n",$1}' } USD${color}
$$ ${execi 300 cat ./tmp/xtrabytes | jq '.[0].price_brl' -r | awk '{printf "%.2f\n",$1}' } BRL
${execi 300 cat ./tmp/xtrabytes | jq '.[0].price_btc' -r } BTC
Last updated: ${execi 10 cat ./tmp/xtrabytes | jq '.[0].last_updated' -r | date +%H:%M:%S }
${image ./images/BG.png -p -15,-11 -s 300x360}