-
Notifications
You must be signed in to change notification settings - Fork 4
/
sidebar
201 lines (186 loc) · 9.71 KB
/
sidebar
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
conky.config = {
lua_load = '~/conky/monochrome/common.lua',
update_interval = 2, -- update interval in seconds
total_run_times = 0, -- this is the number of times conky will update before quitting, set to zero to run forever
xinerama_head = 1, -- 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_left', -- top|middle|bottom_left|middle|right
gap_x = 0, -- same as passing -x at command line
gap_y = 100,
-- window settings
minimum_width = 170,
minimum_height = 1135,
own_window = true,
own_window_type = 'desktop', -- values: desktop (background), panel (bar)
-- 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)
-- window borders
draw_borders = false, -- draw borders around the conky window
border_width = 0, -- 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
-- graph settings
draw_graph_borders = false, -- borders around the graph, ex. cpu graph, network down speed grah
-- does not include bars, ie. wifi strength bar, cpu bar
imlib_cache_flush_interval = 250,
if_up_strictness = 'address', -- network device must be up, having link and an assigned IP address
-- to be considered "up" by ${if_up}
-- values are: up, link or address
-- font settings
use_xft = true,
xftalpha = 1,
uppercase = 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)
font = 'URW Gothic:size=9', -- default: small
font0 = 'URW Gothic:size=12', -- medium
font1 = 'URW Gothic:size=23', -- big
font2 = 'Promenade de la Croisette:size=40', -- device temperature reading
-- colors
default_color = 'white', -- regular text
color1 = 'white', -- text labels
color2 = 'a36dec', -- bar
color3 = 'c33855', -- bar critical
color4 = '906c9c', -- temperature text
-- :::::::::::::::::::::::::::::::: templates ::::::::::::::::::::::::::::::::
-- n.b. the line break escape character '\' is not supported in templates :(
-- cpu/mem/download/disk write graph color
template1 = [[51295e a36dec]],
-- upload/disk read graph
template2 = [[6c1c1b d7511c]],
-- network bandwith: ${template3 device uploadSpeed downloadSpeed}
template3 = [[
${voffset 9}${offset 32}${upspeedgraph \1 29,47 ${template2} \2}
${voffset -8}${offset 32}${downspeedgraph \1 29,47 ${template1} \3}
${voffset -56}${goto 99}${color}${font}${upspeed \1}
${voffset 21}${goto 99}${color}${font}${downspeed \1}${voffset 10}]],
-- hard disk io: ${template4 device readSpeed writeSpeed}
template4 = [[
${voffset 5}${offset 32}${color}${diskiograph_read /dev/\1 21,47 ${template2} \2}
${voffset -8}${offset 32}${diskiograph_write /dev/\1 21,47 ${template1} \3}
${voffset -48}${goto 99}${color}${font}${diskio_read /dev/\1}
${voffset 13}${goto 99}${color}${font}${diskio_write /dev/\1}${voffset 10}]],
-- filesystem: ${template6 filesystemName fileSystemPath}
template6 = [[
${voffset 45}${offset 33}${color2}${if_match ${fs_used_perc \2} > 90}${color3}${endif}${fs_bar 3, 45 \2}
${voffset -46}${goto 99}${color}${font}\1
${voffset 4}${goto 99}${color}${font1}${fs_used_perc \2}${font0}%${font}${voffset 8}]],
};
conky.text = [[
${image ~/conky/monochrome/images/widgets-dock/grape-sidebar-desktop.png -p 0,0}\
# :::::::::::::::::::: cpu
${image ~/conky/monochrome/images/widgets-dock/grape-cpu.png -p 32,41}\
${image ~/conky/monochrome/images/widgets-dock/text-box-99p.png -p 95,54}\
${if_match ${cpu cpu0} > 90}\
${image ~/conky/monochrome/images/widgets-dock/grape-cpu-high.png -p 32,41}\
${if_match ${cpu cpu0} == 100}${image ~/conky/monochrome/images/widgets-dock/text-box-100p.png -p 137,54}${endif}\
${endif}\
${voffset 44}${offset 39}${cpugraph cpu0 33,33 ${template1}}
${voffset -31}${goto 99}${color}${font1}${cpu cpu0}${font0}%
# :::::::::::::::::::: memory
${image ~/conky/monochrome/images/widgets-dock/grape-mem.png -p 32,107}\
${image ~/conky/monochrome/images/widgets-dock/text-box-mem.png -p 95,126}\
${if_match ${memperc} > 90}\
${image ~/conky/monochrome/images/widgets-dock/grape-mem-high.png -p 32,107}\
${endif}\
${voffset 17}${offset 45}${memgraph 43,21 ${template1}}
${voffset -33}${goto 99}${color}${font1}${memperc}${font0}%
${voffset 4}${offset 33}${color2}${if_match ${swapperc} >= 70}${color3}${endif}${swapbar 3, 45}${voffset -2}${goto 99}${font}${color}${swapperc}%
# :::::::::::::::::::: network
${if_up enp0s25}\
# :: upload/download bandwith
${image ~/conky/monochrome/images/widgets-dock/grape-internet.png -p 32,190}\
${image ~/conky/monochrome/images/widgets-dock/text-box.png -p 95,201}\
${image ~/conky/monochrome/images/widgets-dock/text-box.png -p 95,235}\
${template3 enp0s25 3000 73000}
${else}\
${image ~/conky/monochrome/images/widgets-dock/pink-no-internet.png -p 29,182}\
${voffset 86}\
${endif}\
# :::::::::::::::::::: disk samsung SSD HD
# main disk
# disk io
${if_updatenr 1}${image ~/conky/monochrome/images/widgets-dock/grape-diskio-1.png -p 32,272}${endif}\
${if_updatenr 2}${image ~/conky/monochrome/images/widgets-dock/grape-diskio-2.png -p 32,272}${endif}\
${image ~/conky/monochrome/images/widgets-dock/text-box.png -p 95,275}\
${image ~/conky/monochrome/images/widgets-dock/text-box.png -p 95,301}\
${template4 sda 200000 280000}
# partitions
${image ~/conky/monochrome/images/widgets-dock/grape-disk-root.png -p 32,338}\
${image ~/conky/monochrome/images/widgets-dock/text-box-99p.png -p 95,353}\
${template6 \ /}
${image ~/conky/monochrome/images/widgets-dock/grape-disk-home.png -p 32,402}\
${image ~/conky/monochrome/images/widgets-dock/text-box-99p.png -p 95,417}\
${template6 \ /home}
# :::::::::::::::::::: disk seagate HD
${if_existing /dev/sdb}\
# disk io
${if_updatenr 1}${image ~/conky/monochrome/images/widgets-dock/grape-diskio-1.png -p 32,466}${endif}\
${if_updatenr 2}${image ~/conky/monochrome/images/widgets-dock/grape-diskio-2.png -p 32,466}${endif}\
${image ~/conky/monochrome/images/widgets-dock/text-box.png -p 95,469}\
${image ~/conky/monochrome/images/widgets-dock/text-box.png -p 95,495}\
${template4 sdb 6000 250000}
# partitions
${image ~/conky/monochrome/images/widgets-dock/grape-disk-partition.png -p 32,532}\
${image ~/conky/monochrome/images/widgets-dock/text-box-partition.png -p 95,530}\
${template6 veronica /media/veronica}
${else}\
${image ~/conky/monochrome/images/widgets-dock/pink-no-disk.png -p 29,457}\
${voffset 9}${offset 45}${color1}sdb${voffset 108}
${endif}\
# :::::::::::::::::::: disk seagate HD
${if_existing /dev/sdd}\
# disk io
${if_updatenr 1}${image ~/conky/monochrome/images/widgets-dock/grape-diskio-1.png -p 32,596}${endif}\
${if_updatenr 2}${image ~/conky/monochrome/images/widgets-dock/grape-diskio-2.png -p 32,596}${endif}\
${image ~/conky/monochrome/images/widgets-dock/text-box.png -p 95,599}\
${image ~/conky/monochrome/images/widgets-dock/text-box.png -p 95,625}\
${template4 sdd 6000 250000}
# partitions
${image ~/conky/monochrome/images/widgets-dock/grape-disk-partition.png -p 32,662}\
${image ~/conky/monochrome/images/widgets-dock/text-box-partition.png -p 95,660}\
${template6 betty /media/betty}
${else}\
${image ~/conky/monochrome/images/widgets-dock/pink-no-disk.png -p 29,587}\
${voffset 9}${offset 45}${color1}sdd${voffset 108}
${endif}\
# :::::::::::::::::::: disk sde
${if_existing /dev/sde}\
# disk io
${if_updatenr 1}${image ~/conky/monochrome/images/widgets-dock/grape-diskio-1.png -p 32,726}${endif}\
${if_updatenr 2}${image ~/conky/monochrome/images/widgets-dock/grape-diskio-2.png -p 32,726}${endif}\
${image ~/conky/monochrome/images/widgets-dock/text-box.png -p 95,729}\
${image ~/conky/monochrome/images/widgets-dock/text-box.png -p 95,755}\
${template4 sde 6000 60000}
# partitions
${image ~/conky/monochrome/images/widgets-dock/grape-disk-usbdrive.png -p 32,792}\
${image ~/conky/monochrome/images/widgets-dock/text-box-partition.png -p 95,790}\
${template6 maxtor /run/media/ernesto/MAXTOR}
${else}\
${image ~/conky/monochrome/images/widgets-dock/pink-no-disk.png -p 29,717}\
${voffset 9}${offset 45}${color1}sde${voffset 108}
${endif}\
# :::::::::::::::::::: temperatures
# use of lua variables corrupt the values for the network up/down variables, hence temp details shown in the separate 'temperature' conky
# :::::::: cpu
${image ~/conky/monochrome/images/widgets-dock/grape-temp-cpu.png -p 32,856}\
${image ~/conky/monochrome/images/widgets-dock/text-box-99p.png -p 95,871}\
${image ~/conky/monochrome/images/widgets-dock/text-box-100p.png -p 126,871}\
# :::::::: ati video card
${image ~/conky/monochrome/images/widgets-dock/grape-temp-videocard.png -p 32,920}\
${image ~/conky/monochrome/images/widgets-dock/text-box-99p.png -p 95,935}\
${image ~/conky/monochrome/images/widgets-dock/text-box-100p.png -p 126,935}\
# :::::::: hard disks
${image ~/conky/monochrome/images/widgets-dock/grape-temp-disk.png -p 32,984}\
${image ~/conky/monochrome/images/widgets-dock/text-box-99p.png -p 95,999}\
${image ~/conky/monochrome/images/widgets-dock/text-box-100p.png -p 126,999}\
# :::::::: fans
${if_updatenr 1}${image ~/conky/monochrome/images/widgets-dock/grape-fan-1.png -p 32,1048}${endif}\
${if_updatenr 2}${image ~/conky/monochrome/images/widgets-dock/grape-fan-2.png -p 32,1048}${endif}\
${image ~/conky/monochrome/images/widgets-dock/text-box-fan.png -p 95,1077}\
${voffset -420}\
]]