forked from SuperKogito/conky-cryptoTrio
-
Notifications
You must be signed in to change notification settings - Fork 2
/
template
75 lines (63 loc) · 2.58 KB
/
template
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
73
74
75
conky.config = {
-- Watchlist for BTC, ETH, AVAX, LUNA, SOL, JOE
-- Conky settings #
background = false,
update_interval = 1,
double_buffer = true,
no_buffers = true,
-- Window specifications #
own_window = true,
own_window_transparent = true,
own_window_argb_visual = true,
own_window_class = 'override',
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
minimum_width = 50,
maximum_width = 300,
-- Alignment #
alignment = 'top_right',
gap_x = 70,
gap_y = 100,
border_inner_margin = 15,
border_outer_margin = 0,
-- Graphics settings #
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,
-- Text settings #
use_xft = true,
xftalpha = 0,
font = 'Forque:size=10',
override_utf8_locale = false,
imlib_cache_size = 0,
-- Color scheme #
default_color = '#BBBBBB',
color1 = '#006E09',
color2 = '#9933CC',
color3 = '#669900',
color4 = '#FF4800',
color5 = '#CC0000',
color6 = '#AAAAAA',
color7 = '#DDDDDD',
};
conky.text = [[
${execi 300 curl -X 'GET' 'https://api.coingecko.com/api/v3/simple/price?ids=bitcoin%2Cethereum%2Cavalanche-2%2Cterra-luna%2Csolana%2Cjoe&vs_currencies=usd%2Cbtc' -H 'accept: application/json' -o ~/conky-cryptoWidget/prices.json}\
\
${image ~/conky-cryptoWidget/img/btc-white.png -p 20,75 -s 50x50}${voffset 120}\
${font Ubuntu Regular:size=12}${offset 8}${execi 0 echo "scale=2; $(cat ~/conky-cryptoWidget/prices.json | jq -r .bitcoin.usd)/1" | bc}\
\
${image ~/conky-cryptoWidget/img/eth-white.png -p 118,75 -s 50x50}${voffset 0}\
${font Ubuntu Regular:size=12}${offset 30}${execi 0 echo "scale=2; $(cat ~/conky-cryptoWidget/prices.json | jq -r .ethereum.usd)/1" | bc}\
\
${image ~/conky-cryptoWidget/img/avax-white.png -p 216,75 -s 50x50}${voffset 0}\
${font Ubuntu Regular:size=12}${offset 35}${execi 0 echo "scale=2; $(cat ~/conky-cryptoWidget/prices.json | jq -r '."avalanche-2".usd')/1" | bc}\
\
${image ~/conky-cryptoWidget/img/luna-white.png -p 20,210 -s 50x50}${voffset 80}\
${font Ubuntu Regular:size=12}${offset -245}${voffset 53}${alignc 77}${execi 0 echo "scale=2; $(cat ~/conky-cryptoWidget/prices.json | jq -r '."terra-luna".usd')/1" | bc}\
\
${image ~/conky-cryptoWidget/img/sol-white.png -p 118,210 -s 50x50}${voffset 0}\
${font Ubuntu Regular:size=12}${offset 47}${alignc}${execi 0 echo "scale=2; $(cat ~/conky-cryptoWidget/prices.json | jq -r .solana.usd)/1" | bc}\
\
${image ~/conky-cryptoWidget/img/joe-white.png -p 216,210 -s 50x50}${voffset 0}\
${font Ubuntu Regular:size=12}${offset 53}${alignc -77}${execi 0 echo "scale=2; $(cat ~/conky-cryptoWidget/prices.json | jq -r .joe.usd)/1" | bc}\
]];