-
Notifications
You must be signed in to change notification settings - Fork 4
/
applications
405 lines (394 loc) · 26.8 KB
/
applications
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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
--[[
this conky requires the following supporting scripts running in the background:
- dnfPackageLookup.bash
- the music-player java app
- transmission.bash
requires the 'remote control' feature enabled in the transmission bittorrent client: edit > preferences > remote
output files from these supporting apps are read from /tmp/conky
]]
conky.config = {
lua_load = '~/conky/monochrome/common.lua ~/conky/monochrome/panel.lua',
lua_draw_hook_pre = 'reset_state',
update_interval = 2, -- update interval in seconds
xinerama_head = 0, -- for multi monitor setups, select monitor to run on: 0,1,2
double_buffer = true, -- use double buffering (reduces flicker, may not work for everyone)
-- window alignment
alignment = 'middle_right', -- top|middle|bottom_left|right
gap_x = 10,
gap_y = -16,
-- window settings
minimum_width = 189, -- conky will add an extra pixel to this
maximum_width = 189,
minimum_height = 1351,
own_window = true,
own_window_type = 'desktop', -- values: desktop (background), panel (bar)
-- window borders
draw_borders = false, -- draw borders around the conky window
border_width = 1, -- width of border window in pixels
border_inner_margin = 0, -- margin between the border and text in pixels
border_outer_margin = 0, -- margin between the border and the edge of the window in pixels
-- transparency configuration
draw_blended = false,
own_window_transparent = true,
own_window_argb_visual = true, -- turn on transparency
own_window_argb_value = 255, -- range from 0 (transparent) to 255 (opaque)
-- images
imlib_cache_flush_interval = 250,
max_user_text = 26000, -- max size of user text buffer in bytes, i.e. text inside conky.text section
-- default is 16,384 bytes
-- font settings
use_xft = false,
draw_shades = false, -- black shadow on text (not good if text is black)
draw_outline = false, -- black outline around text (not good if text is black)
-- colors
default_color = 'cf9c7b', -- regular text
color1 = 'white',
color2 = 'bf241f', -- highlight important packages
color3 = 'white', -- secondary panel labels
color4 = '623f28' -- secondary panel text
};
conky.text = [[
${lua set_total_lines 72}\
${lua increment_offsets 0 0}\
#
# :::::::::::::::: package updates ::::::::::::::::
#
${lua_parse draw_image ~/conky/monochrome/images/compact/ochre-packages.png 0 0}\
${if_existing /tmp/conky/dnf.packages.formatted}\
# :::::: updates vailable
# ------- dark panel top edge -------
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-dark.png 41 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-dark-edge-top-left.png 41 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-dark-edge-top-right.png 182 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/blank-panel.png 189 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-dark-edge-bottom-left.png 41 31}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-dark-edge-bottom-right.png 182 31}\
${lua_parse draw_image ~/conky/monochrome/images/common/blank-panel.png 41 38}\
# ------- dark panel bottom edge -------
${voffset 5}${lua_parse add_x_offset offset 48}${color1}dandified yum
${voffset 2}${lua_parse add_x_offset offset 48}${color}${lines /tmp/conky/dnf.packages.formatted} package updates${voffset 10}
${lua increment_offsets 0 41}\
# ------- 2 column(s) panel | top edges -------
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light.png 0 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-top-left.png 0 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-top-right.png 127 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/blank-panel.png 134 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light.png 137 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-top-left.png 137 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-top-right.png 182 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/blank-panel.png 189 0}\
# optional dnf branding, can be removed or won't matter if the image does not exist
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-dnf.png 97 5}\
${color}${lua_parse paginate /tmp/conky/dnf.packages.formatted 14}${lua increase_y_offset /tmp/conky/dnf.packages.formatted}${voffset 12}
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-bottom-left.png 0 -7}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-bottom-right.png 127 -7}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-bottom-left.png 137 -7}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-bottom-right.png 182 -7}\
${lua_parse draw_image ~/conky/monochrome/images/common/blank-panel.png 0 0}\
# ------- 2 column(s) panel | bottom edges -------
${lua increment_offsets 0 5}\
${else}\
# :::::: no package updates
# ------- light panel top edge -------
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light.png 41 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-top-left.png 41 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-top-right.png 182 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/blank-panel.png 189 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-bottom-left.png 41 31}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-bottom-right.png 182 31}\
${lua_parse draw_image ~/conky/monochrome/images/common/blank-panel.png 41 38}\
# ------- light panel bottom edge -------
${voffset 5}${lua_parse add_x_offset offset 48}${color1}dandified yum
${voffset 2}${lua_parse add_x_offset offset 48}${color}no package updates${voffset 12}
${lua increment_offsets 0 43}\
${endif}\
#
# :::::::::::::::: now playing ::::::::::::::::
# the UI of this conky has four states: song with album art
# song with no album art
# no music player is running
# dependent java dbus listener application is not running
# :::::: no player available
${if_existing /tmp/conky/musicplayer.name}\
${if_existing /tmp/conky/musicplayer.name Nameless}\
${lua_parse draw_image ~/conky/monochrome/images/compact/ochre-sound-wave.png 0 0}\
# ------- light panel top edge -------
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light.png 41 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-top-left.png 41 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-top-right.png 182 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/blank-panel.png 189 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-bottom-left.png 41 31}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-bottom-right.png 182 31}\
${lua_parse draw_image ~/conky/monochrome/images/common/blank-panel.png 41 38}\
# ------- light panel bottom edge -------
${voffset 3}${lua_parse add_x_offset offset 48}${color1}now playing
${voffset 2}${lua_parse add_x_offset offset 48}${color}no music player running${voffset 13}
${lua increment_offsets 0 43}\
${else}\
# :::::: player status
${lua increment_offsets 0 3}${voffset 3}\
${lua_parse draw_image ~/conky/monochrome/images/compact/ochre-sound-wave.png 0 0}\
${if_existing /tmp/conky/musicplayer.playbackStatus Playing}\
# ------- light panel top edge -------
${lua_parse draw_image ~/conky/monochrome/images/common/ochre-panel-light.png 41 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/ochre-panel-light-edge-top-left.png 41 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/ochre-panel-light-edge-top-right.png 182 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/blank-panel.png 189 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/ochre-panel-light-edge-bottom-left.png 41 31}\
${lua_parse draw_image ~/conky/monochrome/images/common/ochre-panel-light-edge-bottom-right.png 182 31}\
${lua_parse draw_image ~/conky/monochrome/images/common/blank-panel.png 41 38}\
# ------- light panel bottom edge -------
${voffset 3}${lua_parse add_x_offset offset 48}${color3}${lua_parse truncate_string ${cat /tmp/conky/musicplayer.name}}
${voffset 2}${lua_parse add_x_offset offset 48}${color4}${lua_parse truncate_string ${cat /tmp/conky/musicplayer.playbackStatus}}
${else}\
# ------- light panel top edge -------
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light.png 41 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-top-left.png 41 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-top-right.png 182 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/blank-panel.png 189 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-bottom-left.png 41 31}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-bottom-right.png 182 31}\
${lua_parse draw_image ~/conky/monochrome/images/common/blank-panel.png 41 38}\
# ------- light panel bottom edge -------
${voffset 3}${lua_parse add_x_offset offset 48}${color1}${lua_parse truncate_string ${cat /tmp/conky/musicplayer.name}}
${voffset 2}${lua_parse add_x_offset offset 48}${color}${lua_parse truncate_string ${cat /tmp/conky/musicplayer.playbackStatus}}
${endif}\
${lua increment_offsets 0 41}\
${voffset 9}\
# :::::: album art
${if_existing /tmp/conky/musicplayer.albumArtPath}\
# ------- light panel top edge -------
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light.png 0 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-top-left.png 0 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-top-right.png 182 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/blank-panel.png 189 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-bottom-left.png 0 182}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-bottom-right.png 182 182}\
${lua_parse draw_image ~/conky/monochrome/images/common/blank-panel.png 0 189}\
# ------- light panel bottom edge -------
${lua increment_offsets 0 4}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-album-placeholder.png 12 8}\
${lua_parse load_image ${cat /tmp/conky/musicplayer.albumArtPath} 181x181 4 0}\
${lua increment_offsets 0 188}${lua decrease_total_lines 12}\
${voffset 192}\
${endif}\
# :::::: track details
# panel expands based on the track metadata fields available
# the position of the bottom edge images is shifted down 16px for each field
# ------- vertical table image top -------
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-dark.png 0 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-dark-edge-top-left.png 0 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light.png 45 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-top-right.png 182 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/blank-panel.png 189 0}\
${if_existing /tmp/conky/musicplayer.playbackStatus Playing}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-sound-wave.png 129 0}\
${endif}\
# --------- end of table image top ---------
${lua increment_offsets 0 15}\
${voffset 3}${lua_parse add_x_offset offset 5}${color1}title${lua_parse add_x_offset goto 50}${color}${cat /tmp/conky/musicplayer.title}${lua decrease_total_lines 2}
${if_match "${lua get album ${cat /tmp/conky/musicplayer.album}}" != "unknown album"}\
${voffset 3}${lua_parse add_x_offset offset 5}${color1}album${lua_parse add_x_offset goto 50}${color}${lua get album}${lua increment_offsets 0 16}${lua decrease_total_lines 1}
${endif}\
${if_match "${lua get artist ${cat /tmp/conky/musicplayer.artist}}" != "unknown artist"}\
${voffset 3}${lua_parse add_x_offset offset 5}${color1}artist${lua_parse add_x_offset goto 50}${color}${lua get artist}${lua increment_offsets 0 16}${lua decrease_total_lines 1}
${endif}\
${if_match "${lua get genre ${cat /tmp/conky/musicplayer.genre}}" != "unknown genre"}\
${voffset 3}${lua_parse add_x_offset offset 5}${color1}genre${lua_parse add_x_offset goto 50}${color}${lua get genre}${lua increment_offsets 0 16}${lua decrease_total_lines 1}
${endif}\
# ------ vertical table image bottom ------
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-dark-edge-bottom-left.png 0 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-bottom-right.png 182 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/blank-panel.png 0 7}\
# -------- end of table image bottom -------
${lua increment_offsets 0 12}\
${voffset 13}\
${lua increment_offsets 0 3}${voffset 3}\
${endif}\
${else}\
${lua_parse draw_image ~/conky/monochrome/images/compact/ochre-sound-wave.png 0 0}\
# ------- light panel top edge -------
${lua_parse draw_image ~/conky/monochrome/images/common/ochre-panel-light.png 41 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/ochre-panel-light-edge-top-left.png 41 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/ochre-panel-light-edge-top-right.png 182 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/blank-panel.png 189 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/ochre-panel-light-edge-bottom-left.png 41 31}\
${lua_parse draw_image ~/conky/monochrome/images/common/ochre-panel-light-edge-bottom-right.png 182 31}\
${lua_parse draw_image ~/conky/monochrome/images/common/blank-panel.png 41 38}\
# ------- light panel bottom edge -------
${voffset 3}${lua_parse add_x_offset offset 48}${color3}now playing
${voffset 2}${lua_parse add_x_offset offset 48}${color4}input files are missing${voffset 13}
${lua increment_offsets 0 43}\
${endif}\
#
# :::::::::::::::: torrents ::::::::::::::::
#
${lua_parse draw_image ~/conky/monochrome/images/compact/ochre-torrents.png 0 0}\
# :::::: transmission script running
${if_existing /tmp/conky/transmission.torrents}\
${voffset 2}${lua_parse add_x_offset offset 48}${color1}transmission
# ::: no active torrents
${if_match ${lua get activeNum ${lines /tmp/conky/transmission.torrents}} == 0}\
# ------- light panel top edge -------
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light.png 41 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-top-left.png 41 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-top-right.png 182 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/blank-panel.png 189 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-bottom-left.png 41 31}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-bottom-right.png 182 31}\
${lua_parse draw_image ~/conky/monochrome/images/common/blank-panel.png 41 38}\
# ------- light panel bottom edge -------
${voffset 2}${lua_parse add_x_offset offset 48}${color}no active torrents${voffset 13}
${lua increment_offsets 0 43}\
${else}\
# ::: torrents overview
# ------- dark panel top edge -------
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-dark.png 41 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-dark-edge-top-left.png 41 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-dark-edge-top-right.png 182 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/blank-panel.png 189 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-dark-edge-bottom-left.png 41 31}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-dark-edge-bottom-right.png 182 31}\
${lua_parse draw_image ~/conky/monochrome/images/common/blank-panel.png 41 38}\
# ------- dark panel bottom edge -------
${voffset 2}${lua_parse add_x_offset offset 48}${color}${lines /tmp/conky/transmission.torrents} active torrents ${voffset 10}
${lua increment_offsets 0 41}\
# ::: torrent uploads
# the torrent uploads table is composed of 2 columns: upload | torrent name
${if_match ${lines /tmp/conky/transmission.torrents.up} > 0}\
# ------- 2 column(s) panel | top edges -------
${lua_parse draw_image ~/conky/monochrome/images/common/ochre-panel-light.png 0 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/ochre-panel-light-edge-top-left.png 0 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/ochre-panel-light-edge-top-right.png 32 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/blank-panel.png 39 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light.png 42 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-top-left.png 42 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-top-right.png 182 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/blank-panel.png 189 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-peers.png 59 22}\
${lua_parse head /tmp/conky/transmission.torrents.up 53}${lua increase_y_offset /tmp/conky/transmission.torrents.up}${voffset 10}
${lua_parse draw_image ~/conky/monochrome/images/common/ochre-panel-light-edge-bottom-left.png 0 -7}\
${lua_parse draw_image ~/conky/monochrome/images/common/ochre-panel-light-edge-bottom-right.png 32 -7}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-bottom-left.png 42 -7}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-bottom-right.png 182 -7}\
${lua_parse draw_image ~/conky/monochrome/images/common/blank-panel.png 0 0}\
# ------- 2 column(s) panel | bottom edges -------
${lua increment_offsets 0 3}\
${endif}\
# ::: torrent downloads
${if_match ${lines /tmp/conky/transmission.torrents.down} > 0}\
# ------- 2 column(s) panel | top edges -------
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light.png 0 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-top-left.png 0 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-top-right.png 32 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/blank-panel.png 39 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light.png 42 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-top-left.png 42 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-top-right.png 182 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/blank-panel.png 189 0}\
${lua_parse head /tmp/conky/transmission.torrents.down 53}${lua increase_y_offset /tmp/conky/transmission.torrents.down}${voffset 10}
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-bottom-left.png 0 -7}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-bottom-right.png 32 -7}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-bottom-left.png 42 -7}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-bottom-right.png 182 -7}\
${lua_parse draw_image ~/conky/monochrome/images/common/blank-panel.png 0 0}\
# ------- 2 column(s) panel | bottom edges -------
${lua increment_offsets 0 3}\
${endif}\
# ::: no peers
${if_match ${lines /tmp/conky/transmission.peers.raw} == 0}\
# ------- light panel top edge -------
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light.png 42 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-top-left.png 42 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-top-right.png 182 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/blank-panel.png 189 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-bottom-left.png 42 15}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-bottom-right.png 182 15}\
${lua_parse draw_image ~/conky/monochrome/images/common/blank-panel.png 42 22}\
# ------- light panel bottom edge -------
${voffset 2}${lua_parse add_x_offset offset 48}${color}no peers connected${voffset 13}
${else}\
# ------- dark panel top edge -------
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-dark.png 42 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-dark-edge-top-left.png 42 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-dark-edge-top-right.png 182 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/blank-panel.png 189 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-dark-edge-bottom-left.png 42 15}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-dark-edge-bottom-right.png 182 15}\
${lua_parse draw_image ~/conky/monochrome/images/common/blank-panel.png 42 22}\
# ------- dark panel bottom edge -------
${voffset 2}${lua_parse add_x_offset offset 48}${color}${lines /tmp/conky/transmission.peers.raw} peers in the swarm${voffset 10}
${lua increment_offsets 0 25}\
# ::: peers upload
# the peers table is composed of 3 columns: upload | ip | client
${if_match ${lines /tmp/conky/transmission.peers.up} > 0}\
# ------- 3 column(s) panel | top edges -------
${lua_parse draw_image ~/conky/monochrome/images/common/ochre-panel-light.png 0 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/ochre-panel-light-edge-top-left.png 0 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/ochre-panel-light-edge-top-right.png 32 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/blank-panel.png 39 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light.png 42 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-top-left.png 42 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-top-right.png 134 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/blank-panel.png 141 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light.png 144 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-top-left.png 144 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-top-right.png 182 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/blank-panel.png 189 0}\
${lua_parse head /tmp/conky/transmission.peers.up 58}${lua increase_y_offset /tmp/conky/transmission.peers.up}${voffset 10}
${lua_parse draw_image ~/conky/monochrome/images/common/ochre-panel-light-edge-bottom-left.png 0 -7}\
${lua_parse draw_image ~/conky/monochrome/images/common/ochre-panel-light-edge-bottom-right.png 32 -7}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-bottom-left.png 42 -7}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-bottom-right.png 134 -7}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-bottom-left.png 144 -7}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-bottom-right.png 182 -7}\
${lua_parse draw_image ~/conky/monochrome/images/common/blank-panel.png 0 0}\
# ------- 3 column(s) panel | bottom edges -------
${lua increment_offsets 0 3}\
${endif}\
# download peers are only displayed if we have enough total lines left
${if_match ${lua get totalLines} > 0}\
${if_match ${lines /tmp/conky/transmission.peers.down} > 0}\
# ------- 3 column(s) panel | top edges -------
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light.png 0 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-top-left.png 0 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-top-right.png 32 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/blank-panel.png 39 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light.png 42 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-top-left.png 42 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-top-right.png 134 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/blank-panel.png 141 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light.png 144 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-top-left.png 144 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-top-right.png 182 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/blank-panel.png 189 0}\
${lua_parse head /tmp/conky/transmission.peers.down 58}${lua increase_y_offset /tmp/conky/transmission.peers.down}
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-bottom-left.png 0 -7}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-bottom-right.png 32 -7}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-bottom-left.png 42 -7}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-bottom-right.png 134 -7}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-bottom-left.png 144 -7}\
${lua_parse draw_image ~/conky/monochrome/images/common/burgundy-panel-light-edge-bottom-right.png 182 -7}\
${lua_parse draw_image ~/conky/monochrome/images/common/blank-panel.png 0 0}\
# ------- 3 column(s) panel | bottom edges -------
${lua increment_offsets 0 3}\
${endif}\
${endif}\
${endif}\
${endif}\
${else}\
# :::::: error state: input file not available
# ------- light panel top edge -------
${lua_parse draw_image ~/conky/monochrome/images/common/ochre-panel-light.png 41 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/ochre-panel-light-edge-top-left.png 41 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/ochre-panel-light-edge-top-right.png 182 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/blank-panel.png 189 0}\
${lua_parse draw_image ~/conky/monochrome/images/common/ochre-panel-light-edge-bottom-left.png 41 31}\
${lua_parse draw_image ~/conky/monochrome/images/common/ochre-panel-light-edge-bottom-right.png 182 31}\
${lua_parse draw_image ~/conky/monochrome/images/common/blank-panel.png 41 38}\
# ------- light panel bottom edge -------
${voffset 3}${lua_parse add_x_offset offset 48}${color3}transmission
${voffset 2}${lua_parse add_x_offset offset 48}${color4}input files are missing${voffset 13}
${lua increment_offsets 0 43}\
${endif}\
]];