-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.conkyrc
144 lines (119 loc) · 9.08 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
-- vim: ts=4 sw=4 noet ai cindent syntax=lua
--[[
Conky, a system monitor, based on torsmo
Any original torsmo code is licensed under the BSD license
All code written since the fork of torsmo is licensed under the GPL
Please see COPYING for details
Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
Copyright (c) 2005-2012 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
All rights reserved.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
]]
conky.config = {
alignment = 'top_right',
background = true,
border_width = 0,
cpu_avg_samples = 1,
net_avg_samples = 1,
draw_borders = false,
draw_graph_borders = false,
draw_outline = false,
draw_shades = false,
use_xft = true,
font = 'Source Code Pro for Powerline:size=8',
gap_x = -2560,
-- gap_x = 0,
gap_y = 0,
minimum_height = 1440,
minimum_width = 300,
net_avg_samples = 2,
no_buffers = true,
double_buffer = true,
out_to_console = false,
out_to_stderr = false,
extra_newline = false,
own_window = true,
own_window_class = 'Conky',
own_window_type = 'desktop',
own_window_hints = "undecorated,below,sticky,skip_taskbar,skip_pager",
own_window_transparent = false,
own_window_argb_visual = true,
own_window_argb_value = 100,
own_window_transparent = false,
own_window_colour = '000000',
stippled_borders = 0,
update_interval = 1.0,
uppercase = false,
use_spacer = 'none',
default_graph_size = "30,170",
default_bar_size = "30,170",
show_graph_scale = false,
show_graph_range = false,
default_color = "#FFFFFF",
color1 = "orange",
use_xft = true,
ximerama_head = 0,
}
conky.text = [[
${voffset 10}
${goto 20}${color1}${font Ubuntu:size=11}CPU LOAD${font}${color}
${goto 30}${if_match ${cpu cpu0} > 50}${color1}${else}${color}${endif}CPU 0${goto 80}${if_match ${cpu cpu0} > 50}${color1}${else}${color}${endif}${cpubar cpu0 10,150}$alignr${offset -30}${cpu cpu0}%${color}
${goto 30}${if_match ${cpu cpu1} > 50}${color1}${else}${color}${endif}CPU 1${goto 80}${if_match ${cpu cpu1} > 50}${color1}${else}${color}${endif}${cpubar cpu1 10,150}$alignr${offset -30}${cpu cpu1}%${color}
${goto 30}${if_match ${cpu cpu2} > 50}${color1}${else}${color}${endif}CPU 2${goto 80}${if_match ${cpu cpu2} > 50}${color1}${else}${color}${endif}${cpubar cpu2 10,150}$alignr${offset -30}${cpu cpu2}%${color}
${goto 30}${if_match ${cpu cpu3} > 50}${color1}${else}${color}${endif}CPU 3${goto 80}${if_match ${cpu cpu3} > 50}${color1}${else}${color}${endif}${cpubar cpu3 10,150}$alignr${offset -30}${cpu cpu3}%${color}
${goto 30}${if_match ${cpu cpu4} > 50}${color1}${else}${color}${endif}CPU 4${goto 80}${if_match ${cpu cpu4} > 50}${color1}${else}${color}${endif}${cpubar cpu4 10,150}$alignr${offset -30}${cpu cpu4}%${color}
${goto 30}${if_match ${cpu cpu5} > 50}${color1}${else}${color}${endif}CPU 5${goto 80}${if_match ${cpu cpu5} > 50}${color1}${else}${color}${endif}${cpubar cpu5 10,150}$alignr${offset -30}${cpu cpu5}%${color}
${goto 30}${if_match ${cpu cpu6} > 50}${color1}${else}${color}${endif}CPU 6${goto 80}${if_match ${cpu cpu6} > 50}${color1}${else}${color}${endif}${cpubar cpu6 10,150}$alignr${offset -30}${cpu cpu6}%${color}
${goto 30}${if_match ${cpu cpu7} > 50}${color1}${else}${color}${endif}CPU 7${goto 80}${if_match ${cpu cpu7} > 50}${color1}${else}${color}${endif}${cpubar cpu7 10,150}$alignr${offset -30}${cpu cpu7}%${color}
${goto 30}${if_match ${cpu cpu8} > 50}${color1}${else}${color}${endif}CPU 8${goto 80}${if_match ${cpu cpu8} > 50}${color1}${else}${color}${endif}${cpubar cpu8 10,150}$alignr${offset -30}${cpu cpu8}%${color}
${goto 30}${if_match ${cpu cpu9} > 50}${color1}${else}${color}${endif}CPU 9${goto 80}${if_match ${cpu cpu9} > 50}${color1}${else}${color}${endif}${cpubar cpu9 10,150}$alignr${offset -30}${cpu cpu9}%${color}
${goto 30}${if_match ${cpu cpu10} > 50}${color1}${else}${color}${endif}CPU 10${goto 80}${if_match ${cpu cpu10} > 50}${color1}${else}${color}${endif}${cpubar cpu10 10,150}$alignr${offset -30}${cpu cpu10}%${color}
${goto 30}${if_match ${cpu cpu11} > 50}${color1}${else}${color}${endif}CPU 11${goto 80}${if_match ${cpu cpu11} > 50}${color1}${else}${color}${endif}${cpubar cpu11 10,150}$alignr${offset -30}${cpu cpu11}%${color}
${goto 30}${if_match ${cpu cpu12} > 50}${color1}${else}${color}${endif}CPU 12${goto 80}${if_match ${cpu cpu12} > 50}${color1}${else}${color}${endif}${cpubar cpu12 10,150}$alignr${offset -30}${cpu cpu12}%${color}
${goto 30}${if_match ${cpu cpu13} > 50}${color1}${else}${color}${endif}CPU 13${goto 80}${if_match ${cpu cpu13} > 50}${color1}${else}${color}${endif}${cpubar cpu13 10,150}$alignr${offset -30}${cpu cpu13}%${color}
${goto 30}${if_match ${cpu cpu14} > 50}${color1}${else}${color}${endif}CPU 14${goto 80}${if_match ${cpu cpu14} > 50}${color1}${else}${color}${endif}${cpubar cpu14 10,150}$alignr${offset -30}${cpu cpu14}%${color}
${goto 30}${if_match ${cpu cpu15} > 50}${color1}${else}${color}${endif}CPU 15${goto 80}${if_match ${cpu cpu15} > 50}${color1}${else}${color}${endif}${cpubar cpu15 10,150}$alignr${offset -30}${cpu cpu15}%${color}
${goto 20}${color1}${font Ubuntu:size=11}CPU PROCESSES${font}${color}
${goto 30}${if_match ${top cpu 1} > 10}${color1}${else}${color}${endif}${top name 1}$alignr${offset -30}${if_match ${top cpu 1} > 10}${color1}${else}${color}${endif}${top cpu 1}%${color}
${goto 30}${if_match ${top cpu 2} > 10}${color1}${else}${color}${endif}${top name 2}$alignr${offset -30}${if_match ${top cpu 2} > 10}${color1}${else}${color}${endif}${top cpu 2}%${color}
${goto 30}${if_match ${top cpu 3} > 10}${color1}${else}${color}${endif}${top name 3}$alignr${offset -30}${if_match ${top cpu 3} > 10}${color1}${else}${color}${endif}${top cpu 3}%${color}
${goto 30}${if_match ${top cpu 4} > 10}${color1}${else}${color}${endif}${top name 4}$alignr${offset -30}${if_match ${top cpu 4} > 10}${color1}${else}${color}${endif}${top cpu 4}%${color}
${goto 30}${if_match ${top cpu 5} > 10}${color1}${else}${color}${endif}${top name 5}$alignr${offset -30}${if_match ${top cpu 5} > 10}${color1}${else}${color}${endif}${top cpu 5}%${color}
${offset 10}${cpugraph 30,270 #FFF #FFF -l}
${goto 30}${loadavg 1} | ${loadavg 2} | ${loadavg 3}
${goto 20}${color1}${font Ubuntu:size=11}GPU${font}${color}
${goto 30}GPU Temperature${goto 215}${color}${execi 60 nvidia-settings -query [gpu:0]/GPUCoreTemp -t | xargs}°C
${goto 30}VRAM Utilization${goto 215}${color}${exec nvidia-smi | grep % | cut -c 37-40 | xargs}MB
${goto 30}GPU Power Draw${goto 215}${color}${exec nvidia-smi | grep % | cut -c 21-23 | xargs}W
${goto 30}${execigraph 30 "exec nvidia-smi | grep % | cut -c 61-63 | xargs" }
${goto 30}${exec nvidia-smi | grep % | cut -c 61-63 | xargs}% usage${color}
${goto 20}${color1}${font Ubuntu:size=11}MEM PROCESSES${font}${color}
${goto 30}${if_match ${top_mem mem 1} > 10}${color1}${else}${color}${endif}${top_mem name 1}$alignr${offset -30}${if_match ${top_mem mem 1} > 10}${color1}${else}${color}${endif}${top_mem mem 1}%${color}
${goto 30}${if_match ${top_mem mem 2} > 10}${color1}${else}${color}${endif}${top_mem name 2}$alignr${offset -30}${if_match ${top_mem mem 2} > 10}${color1}${else}${color}${endif}${top_mem mem 2}%${color}
${goto 30}${if_match ${top_mem mem 3} > 10}${color1}${else}${color}${endif}${top_mem name 3}$alignr${offset -30}${if_match ${top_mem mem 3} > 10}${color1}${else}${color}${endif}${top_mem mem 3}%${color}
${goto 30}${if_match ${top_mem mem 4} > 10}${color1}${else}${color}${endif}${top_mem name 4}$alignr${offset -30}${if_match ${top_mem mem 4} > 10}${color1}${else}${color}${endif}${top_mem mem 4}%${color}
${goto 30}${if_match ${top_mem mem 5} > 10}${color1}${else}${color}${endif}${top_mem name 5}$alignr${offset -30}${if_match ${top_mem mem 5} > 10}${color1}${else}${color}${endif}${top_mem mem 5}%${color}
${offset 10}${memgraph 30,270 #FFF #FFF -l}
${goto 30}${mem} / ${memmax} (${memperc}%)
${goto 20}${color1}${font Ubuntu:size=11}DISCS${font}${color}
${goto 30}/${goto 120}${fs_used /}$alignr${offset -30} on ${fs_size /}
${goto 30}SWAP${goto 120}${swap}$alignr${offset -30} on ${swapmax}
${goto 20}${color1}${font Ubuntu:size=11}NETWORK${font}${color}
${goto 30}${color}Down${color}${goto 60}${offset 5}${downspeed enp4s0} ${goto 120}/ ${totaldown enp4s0}
${offset 10}${downspeedgraph enp4s0 30,270 100 #FFF #FFF -l}
${goto 30}${color}UP${color}${goto 60}${offset 5}${upspeed enp4s0} ${goto 120}/ ${totalup enp4s0}
${offset 10}${upspeedgraph enp4s0 30,270 100 #FFF #FFF -l}
${goto 20}${color1}${font Ubuntu:size=11}ADDRESS${font}${color}
${goto 30}${color}Lan IP$alignr${offset -30}${color}${addr enp4s0}
${goto 30}${color}Inbound ports$alignr${offset -37}${color}${tcp_portmon 1 32767 count}
${goto 30}${color}Outbound ports$alignr${offset -30}${color}${tcp_portmon 32768 61000 count}
]]