forked from BobbyBakes/conky-Vision
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.conkyrc
190 lines (165 loc) · 5.88 KB
/
.conkyrc
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
#====================================
# Conky Settings
#====================================
background yes
update_interval 1
double_buffer yes
no_buffers yes
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
#====================================
# Window Specifications
#====================================
gap_x 0
gap_y 0
alignment middle_middle
minimum_size 600 380
maximum_width 600
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
own_window_argb_visual yes
own_window_argb_value 255
#====================================
# Text Settings
#====================================
use_xft yes
xftalpha 0
xftfont sans serif:size=10
override_utf8_locale yes
imlib_cache_size 0
#====================================
# Color Scheme
#====================================
default_color FFFFFF
color0 FFFFFF # clock
color1 FFFFFF # date
color2 FFFFFF # current temperature
color3 FFFFFF # high tempratures
color4 FFFFFF # low tempratures
color5 FFFFFF # days
#====================================
# Icon Sources
#====================================
template0 ~/.conky-vision-icons/\#fff__32 # today
template1 ~/.conky-vision-icons/\#fff__32 # +1day
template2 ~/.conky-vision-icons/\#fff__32 # +2days
template3 ~/.conky-vision-icons/\#fff__32 # +3days
template4 ~/.conky-vision-icons/\#fff__32 # +4days
#====================================
# API Key
#====================================
template6 ""
#====================================
# City ID
#====================================
template7 ""
#====================================
# Temp Unit (default, metric, imperial)
#====================================
template8 metric
#====================================
# Locale (e.g. "es_ES.UTF-8")
# Leave empty for default
# Leave the quotes
#====================================
template9 ""
###################################################
###################################################
TEXT
#----------------------------------------
# CURL
#----------------------------------------
\
\
${execi 300 l=${template9}; l=${l%%_*}; curl -s "api.openweathermap.org/data/2.5/forecast/daily?APPID=${template6}&id=${template7}&cnt=5&units=${template8}&lang=$l" -o ~/.cache/forecast.json}\
${execi 300 l=${template9}; l=${l%%_*}; curl -s "api.openweathermap.org/data/2.5/weather?APPID=${template6}&id=${template7}&cnt=5&units=${template8}&lang=$l" -o ~/.cache/weather.json}\
\
\
#----------------------------------------
# Clock
#----------------------------------------
\
\
${font Poiret One:weight=Light:size=96}${color0}\
${alignc}${time %H:%M}\
${font}${color}
\
\
#----------------------------------------
# Date
#----------------------------------------
\
\
${font Poiret One:weight=Light:size=28}${color1}\
${voffset 30}\
${alignc}${execi 300 LANG=${template9} LC_TIME=${template9} date +"%A, %B %d"}\
${font}${color}
\
\
#----------------------------------------
# Current Temperature
#----------------------------------------
\
\
${font Poiret One:size=18}${color2}\
${voffset 36}\
${goto 60}${execi 300 jq .main.temp ~/.cache/weather.json | awk '{print int($1+0.5)}' # round num}°\
${font}${color}\
\
\
#----------------------------------------
# High Temperatures
#----------------------------------------
\
\
${font Poiret One:size=12}${color3}\
${goto 164}${execi 300 jq .list[1].temp.max ~/.cache/forecast.json | awk '{print int($1+0.5)}' # round num}°\
${goto 272}${execi 300 jq .list[2].temp.max ~/.cache/forecast.json | awk '{print int($1+0.5)}' # round num}°\
${goto 378}${execi 300 jq .list[3].temp.max ~/.cache/forecast.json | awk '{print int($1+0.5)}' # round num}°\
${goto 484}${execi 300 jq .list[4].temp.max ~/.cache/forecast.json | awk '{print int($1+0.5)}' # round num}°\
${font}${color}\
\
\
#----------------------------------------
# Low Temparatures
#----------------------------------------
\
\
${font Poiret One:size=12}${color4}\
${voffset 52}\
${goto 218}${execi 300 jq .list[1].temp.min ~/.cache/forecast.json | awk '{print int($1+0.5)}' # round num}°\
${goto 324}${execi 300 jq .list[2].temp.min ~/.cache/forecast.json | awk '{print int($1+0.5)}' # round num}°\
${goto 430}${execi 300 jq .list[3].temp.min ~/.cache/forecast.json | awk '{print int($1+0.5)}' # round num}°\
${goto 536}${execi 300 jq .list[4].temp.min ~/.cache/forecast.json | awk '{print int($1+0.5)}' # round num}°\
${font}${color}
\
\
#----------------------------------------
# Day Names
#----------------------------------------
\
\
${font Poiret One:size=14}${color5}\
${voffset 20}\
${goto 76}${execi 300 LANG=${template9} LC_TIME=${template9} date +%^a}\
${goto 182}${execi 300 LANG=${template9} LC_TIME=${template9} date -d +1day +%^a}\
${goto 288}${execi 300 LANG=${template9} LC_TIME=${template9} date -d +2days +%^a}\
${goto 394}${execi 300 LANG=${template9} LC_TIME=${template9} date -d +3days +%^a}\
${goto 500}${execi 300 LANG=${template9} LC_TIME=${template9} date -d +4days +%^a}\
${font}${color}
\
\
#----------------------------------------
# Weather Icons
#----------------------------------------
\
\
${execi 300 cp -f ${template0}/$(jq .weather[0].id ~/.cache/weather.json).png ~/.cache/current.png}${image ~/.cache/current.png -p 72,268 -s 32x32}\
${execi 300 cp -f ${template1}/$(jq .list[1].weather[0].id ~/.cache/forecast.json).png ~/.cache/forecast-1.png}${image ~/.cache/forecast-1.png -p 178,268 -s 32x32}\
${execi 300 cp -f ${template2}/$(jq .list[2].weather[0].id ~/.cache/forecast.json).png ~/.cache/forecast-2.png}${image ~/.cache/forecast-2.png -p 284,268 -s 32x32}\
${execi 300 cp -f ${template3}/$(jq .list[3].weather[0].id ~/.cache/forecast.json).png ~/.cache/forecast-3.png}${image ~/.cache/forecast-3.png -p 390,268 -s 32x32}\
${execi 300 cp -f ${template4}/$(jq .list[4].weather[0].id ~/.cache/forecast.json).png ~/.cache/forecast-4.png}${image ~/.cache/forecast-4.png -p 496,268 -s 32x32}\