-
Notifications
You must be signed in to change notification settings - Fork 4
/
temperature
62 lines (53 loc) · 2.9 KB
/
temperature
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
conky.config = {
lua_load = '~/conky/monochrome/common.lua',
update_interval = 1, -- update interval in seconds
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|right
gap_x = 0, -- same as passing -x at command line
gap_y = -305,
-- window settings | conky width matches the sidebar conky
minimum_width = 170,
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
own_window_transparent = true,
own_window_argb_visual = true, -- turn on transparency
own_window_argb_value = 255, -- range from 0 (transparent) to 255 (opaque)
-- font settings
use_xft = true,
xftalpha = 1,
uppercase = true,
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
-- colors
default_color = 'white', -- regular text
color2 = 'a36dec', -- bar
color3 = 'c33855', -- bar critical
};
conky.text = [[
# :::::::: cpu
${voffset 45}${offset 33}${color2}${if_match ${lua get cpuTemp ${hwmon atk0110 temp 1}} > 78}${color3}${endif}${lua_bar 3,45 get cpuTemp}
${voffset -29}${goto 99}${color}${font1}${lua get cpuTemp}${font0}°C${font}${voffset 8}
# :::::::: ati video card
${voffset 45}${offset 33}${color2}${if_match ${lua get videoTemp ${hwmon radeon temp 1}} > 75}${color3}${endif}${lua_bar 3,45 get videoTemp}
${voffset -29}${goto 99}${color}${font1}${lua get videoTemp}${font0}°C${font}${voffset 8}
# :::::::: hard disks
${lua compute diskTemp ${lua get_max_resource_usage ${hwmon 0 temp 1} ${hwmon 1 temp 1} ${hwmon 2 temp 1}}}\
${voffset 45}${offset 33}${color2}${if_match ${lua get diskTemp} > 42}${color3}${endif}${lua_bar 3,45 get diskTemp}
${voffset -29}${goto 99}${color}${font1}${lua get diskTemp}${font0}°C${font}${voffset 8}
# :::::::: fans
${lua compute fanSpeed ${lua get_max_resource_usage ${hwmon atk0110 fan 3} ${hwmon atk0110 fan 1} ${hwmon atk0110 fan 2} ${hwmon atk0110 fan 4}}}\
${voffset 45}${offset 33}${color2}${if_match ${lua get fanSpeed} > 2300}${color3}${endif}${lua_bar 3,45 conky_get_usage_percentage 2600 fanSpeed}
${voffset -29}${goto 99}${color}${font1}${font}${lua get fanSpeed} rpm${voffset 8}
${voffset -150}\
]];