-
Notifications
You must be signed in to change notification settings - Fork 6
/
conky.conf
117 lines (108 loc) · 3.91 KB
/
conky.conf
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
dofile(os.getenv("HOME") .. "/.config/conky/scaling.lua")
conky.sizes = {
[1080] = {
width = 194,
height = 472,
small_font = 7.75,
big_font = 10,
gap = 22,
voffset = 3,
line_height = 2,
bar_height = 4,
graph_height = 19,
},
[1440] = {
width = 262,
height = 630,
small_font = 10.5,
big_font = 13,
gap = 31,
voffset = 4,
line_height = 2,
bar_height = 5,
graph_height = 25,
},
}
conky.config = {
-- general
use_xft = true,
double_buffer = true,
no_buffers = true,
own_window = true,
alignment = 'middle_right',
own_window_type = 'desktop',
own_window_hints = 'undecorated,sticky,skip_taskbar,skip_pager',
if_up_strictness = 'address',
update_interval = 3,
update_interval_on_battery = 5,
total_run_times = 0,
imlib_cache_size = 0,
-- sizes
gap_y = '<gap>',
maximum_width = '<width>',
minimum_width = '<width>',
minimum_height = '<height>',
default_bar_width = '<width>',
default_bar_height = '<bar_height>',
default_graph_width = '<width>',
default_graph_height = '<graph_height>',
-- default drawing
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = true,
-- colors
own_window_colour = '#1d2021',
default_color = '#d5c4a1',
color1 = '#fe8019',
color2 = '#fb4934',
-- fonts
font = 'monospace:size=<small_font>',
font1 = 'sans-serif:size=<small_font>:heavy',
font2 = 'sans-serif:size=<big_font>:heavy',
-- templates
template0 = [[$font2${color1}\1 ${hr <line_height>}$font$color${voffset <voffset>}]],
template1 = [[${voffset <voffset>}$font2${color1}\1 ${hr <line_height>}$font$color${voffset <voffset>}]],
template2 = [[${font1}\1$font]],
template3 = [[${if_up enp3s0}${\1 enp3s0}$else${\1 wlp5s0}$endif]],
template4 = [[${if_match $acpitemp >= 60}$color1$endif${if_match $acpitemp >= 75}$color2$endif$acpitemp$color]],
template5 = [[${texeci 7200 absolutely-proprietary <<< no |& sed -rn '/^.+ ([0-9]+\\.[0-9]+)$/{s//\\1/p;q};$a0.00'}]]
};
conky.text = [[
###############################################################################
${template0 System}
###############################################################################
${template2 Uptime} $alignr$uptime_short
${template2 Temperature} $alignr${template4}°C
${template2 Frequency} $alignr$freq_g GHz
${template2 Processes} $alignr$processes
${template2 Freedom\ Index} $alignr${template5}%
###############################################################################
${template1 Resources}
###############################################################################
${template2 CPU} $alignr$loadavg
${loadgraph -l}
${top name 1} $alignr${top cpu 1}%
${top name 2} $alignr${top cpu 2}%
${top name 3} $alignr${top cpu 3}%
$hr
${template2 RAM} $alignr$mem / $memmax
${memgraph -l}
${top_mem name 1} $alignr${top_mem mem 1}%
${top_mem name 2} $alignr${top_mem mem 2}%
${top_mem name 3} $alignr${top_mem mem 3}%
$hr
${template2 Disk} $alignr$fs_used / $fs_size
${fs_bar /}
Disk I/O $alignr$diskio_write / $diskio_read
###############################################################################
${template1 Network}
###############################################################################
${template2 Download} $alignr${template3 downspeed} / ${template3 totaldown}
${template2 Upload} $alignr${template3 upspeed} / ${template3 totalup}
$hr
${template2 Local} $alignr${template3 addrs}
$hr
${template2 Public} $alignr${curl ipinfo.io/ip 5}
]]
-- vim: filetype=lua syntax=conkyrc