-
Notifications
You must be signed in to change notification settings - Fork 1
/
System Monitor
115 lines (97 loc) · 5 KB
/
System Monitor
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
# **********************************************************************
# Made by Saravanabalagi with <3
# github.com/saravanabalagi
#
# Forked from "CPU Panel (8-core)" theme for Conky by Tony George
# **********************************************************************
background yes
double_buffer yes
alignment top_right
border_width 1
cpu_avg_samples 2
default_color white
default_outline_color white
default_shade_color white
draw_borders no
draw_graph_borders yes
draw_outline no
draw_shades no
gap_x 20
gap_y 40
net_avg_samples 2
no_buffers yes
out_to_console no
out_to_stderr no
extra_newline no
own_window yes
own_window_type normal
own_window_transparent yes
own_window_colour 000000
own_window_argb_visual yes
own_window_argb_value 0
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
minimum_size 170 0
stippled_borders 0
update_interval 2.0
uppercase no
use_spacer none
show_graph_scale no
show_graph_range no
use_xft yes
xftalpha 0.1
xftfont Droid Sans:size=10
color0 white
color1 EAEAEA
color2 FFA300
color3 grey
TEXT
${color2}CPU ${color0}${alignr}${cpu cpu0}%
${cpubar cpu0 5,}
${color1}Frequency $alignr $freq_g GHz
${top name 1} $alignr ${top cpu 1}%
${top name 2} $alignr ${top cpu 2}%
${top name 3} $alignr ${top cpu 3}%
${color2}GPU ${color0} $alignr ${exec nvidia-smi --query-gpu=utilization.gpu --format=csv,noheader}
# ${color2}GPU ${color0} $alignr ${exec nvidia-smi --query-gpu=gpu_name --format=csv,noheader,nounits} $color
${execbar exec nvidia-smi --query-gpu=utilization.gpu --format=csv,noheader}
${color1}Frequency ${color} $alignr ${exec nvidia-smi --query-gpu=clocks.sm --format=csv,noheader}
${color1}Power Draw ${color} $alignr ${exec nvidia-smi --query-gpu=power.draw --format=csv,noheader}
${color1}Fan Speed ${color} $alignr ${exec nvidia-smi --query-gpu=fan.speed --format=csv,noheader}
${color2}VRAM ${color0} $alignr ${exec nvidia-smi --query-gpu=memory.used --format=csv,noheader}
${execbar exec nvidia-smi --query-gpu=utilization.memory --format=csv,noheader}
${color1}${exec python3 /home/$(whoami)/.conky/saravanabalagi/query_gpu_processes.py -n1 --name} $alignr ${exec python3 /home/$(whoami)/.conky/saravanabalagi/query_gpu_processes.py -n1 --memory}
${color1}${exec python3 /home/$(whoami)/.conky/saravanabalagi/query_gpu_processes.py -n2 --name} $alignr ${exec python3 /home/$(whoami)/.conky/saravanabalagi/query_gpu_processes.py -n2 --memory}
${color1}${exec python3 /home/$(whoami)/.conky/saravanabalagi/query_gpu_processes.py -n3 --name} $alignr ${exec python3 /home/$(whoami)/.conky/saravanabalagi/query_gpu_processes.py -n3 --memory}
# -----------------
# Using nvidia-smi
# ${color1}${exec nvidia-smi | sed -n '/Processes/,$p' | sed -n 4,4p | sed -n 's/|\s*[0-9]*\s*[0-9]*\s*[A-Z]*\s*\([/0-9a-zA-Z.=_-]*\)\s*.*/\1/p' | sed "s/.*\///"} $alignr ${exec nvidia-smi | sed -n '/Processes/,$p' | sed -n 4,4p | sed -n 's/|\s*[0-9]*\s*[0-9]*\s*[A-Z]*\s*[/0-9a-zA-Z.=_-]*\s*\([0-9a-zA-Z]*\)\s*.*/\1/p'}
# ${color1}${exec nvidia-smi | sed -n '/Processes/,$p' | sed -n 5,5p | sed -n 's/|\s*[0-9]*\s*[0-9]*\s*[A-Z]*\s*\([/0-9a-zA-Z.=_-]*\)\s*.*/\1/p' | sed "s/.*\///"} $alignr ${exec nvidia-smi | sed -n '/Processes/,$p' | sed -n 5,5p | sed -n 's/|\s*[0-9]*\s*[0-9]*\s*[A-Z]*\s*[/0-9a-zA-Z.=_-]*\s*\([0-9a-zA-Z]*\)\s*.*/\1/p'}
# ${color1}${exec nvidia-smi | sed -n '/Processes/,$p' | sed -n 6,6p | sed -n 's/|\s*[0-9]*\s*[0-9]*\s*[A-Z]*\s*\([/0-9a-zA-Z.=_-]*\)\s*.*/\1/p' | sed "s/.*\///"} $alignr ${exec nvidia-smi | sed -n '/Processes/,$p' | sed -n 6,6p | sed -n 's/|\s*[0-9]*\s*[0-9]*\s*[A-Z]*\s*[/0-9a-zA-Z.=_-]*\s*\([0-9a-zA-Z]*\)\s*.*/\1/p'}
# -------------------
${color2}RAM ${color0}${alignr}${mem}
${membar 5,}
${top_mem name 1} $alignr ${top_mem mem_res 1}
${top_mem name 2} $alignr ${top_mem mem_res 2}
${top_mem name 3} $alignr ${top_mem mem_res 3}
${top_mem name 4} $alignr ${top_mem mem_res 4}
${top_mem name 5} $alignr ${top_mem mem_res 5}
${color2}Swap $alignr ${color0}$swapperc%
${swapbar 4,}
${color1}Swap Usage $alignr ${color0}$swap/ $swapmax
${color2}Disks $alignr ${color0}${fs_used_perc /}%
${fs_bar /}
${color1}SSD $alignr ${color} ${fs_used /} / ${fs_size /}
${color1}HDD $alignr ${color} ${fs_used /media/saravanabalagi/DATA} / ${fs_size /media/saravanabalagi/DATA}
${color2}Temperature
${color1}CPU $alignr ${color} ${hwmon 0 temp 1}°C
${color1}GPU ${color} $alignr ${exec nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader}°C
${color1}SSD $alignr ${color} ${exec smartctl -a /dev/nvme0 | grep Temperature | sed -n 1p | sed -n 's/[A-Za-z: ]*\([0-9]*\) [A-Za-z]*/\1/p'}°C
${color1}HDD $alignr ${color} ${exec hddtemp /dev/sda | sed "s/.*://"}
${color1}PCH $alignr ${color} ${hwmon 1 temp 1}°C
${color2}Network
${color1}Download ${color0}${alignr}${downspeed enp6s0}
${color1}Upload ${color0}${alignr}${upspeed enp6s0}
${color1}Downloaded $alignr${totaldown enp6s0}
${color1}Uploaded $alignr${totalup enp6s0}
${color1}Local${color0}${alignr}${addr enp6s0}
${color1}Public${color0}${alignr}${execi 3600 wget -q -O /dev/stdout http://checkip.dyndns.org/ | cut -d : -f 2- | cut -d \< -f -1}