-
Notifications
You must be signed in to change notification settings - Fork 1
/
conky.conf
94 lines (81 loc) · 4.39 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
--[[
http://conky.sourceforge.net/docs.html
http://conky.sourceforge.net/variables.html
https://linuxconfig.org/ubuntu-20-04-system-monitoring-with-conky-widgets
https://github.com/brndnmtthws/conky/wiki
https://cairographics.org/manual/
]]
conky.config={
alignment='top_right',
background=false,
color1='A9A9A9',
color2='616161',
color3='313131',
cpu_avg_samples=4,
default_color='FFFFFF',
default_outline_color='black',
default_shade_color='333333',
double_buffer=true,
draw_borders=false,
draw_graph_borders=false,
draw_outline=false,
draw_shades=false,
font='Ubuntu:style=medium:pixelsize=13',
gap_x=56,
gap_y=0,
lua_load="~/.conky/conky.lua",
lua_draw_hook_post="conky_main",
maximum_width=300,
minimum_height=10,
minimum_width=300,
net_avg_samples=2,
no_buffers=true,
override_utf8_locale=true,
own_window_argb_value=0,
own_window_argb_visual=true,
own_window_colour='000000',
own_window_hints='undecorated,below,sticky,skip_taskbar,skip_pager',
own_window_transparent=true,
own_window_type='desktop',
own_window=true,
text_buffer_size=2048,
total_run_times=0,
update_interval=3,
uppercase=false,
use_xft=true,
xftalpha=.1,
}
conky.text=[[
${color1}
${image ~/.conky/logo.png -s 80x80 -f}
${voffset -45} ${alignr}${execpi 6000 hostnamectl |grep "Static hostname" | cut -c 20-50}
${alignr}${execpi 6000 hostnamectl |grep "Operating System"| cut -c 20-50}
${alignr}${execpi 6000 hostnamectl |grep "Kernel"| cut -c 20-35}
${voffset 30}${color3}${hr}
${color1}${font Font Awesome 6 Free:style=Solid:pixelsize=13}${font}${goto 30}CPU${alignr}${cpu cpu0}% / ${if_match "${exec sensors | grep 'Package id' | awk '{print $4}'}">="90"}${color red}${exec sensors | grep 'Package id' | awk '{print $4}'}°${color}${else}${exec sensors | grep 'Package id' | awk '{print $4}'}°${endif}
${execpi 6000 lscpu | grep "Model name" | sed -r 's/Model name:\s{1,}(.*) @ .*z\s*/\1/g'}
${color2}${cpugraph cpu0 50,299 5e7b7b d8deeb -t}
${color3}${hr}
${color1}${font Font Awesome 6 Free:style=Solid:pixelsize=13}${font}${goto 30}Root${alignr}${fs_free} free / ${fs_size}
${color1}${font Font Awesome 6 Free:style=Solid:pixelsize=13}${font}${goto 30}Home${alignr}${fs_free /home} free / ${fs_size /home}
${color2}${diskiograph_read 50,145}${alignr}${diskiograph_write 50,145}
${color3}${hr}
${color1}${font Font Awesome 6 Free:style=Solid:pixelsize=13}${font}${goto 30}Network
${font Font Awesome 6 Free:style=Solid:pixelsize=13}${font}${goto 30}${if_match "${addr enp0s25}"!="No Address"}${addr enp0s25}${endif}${if_match "${addr wlo2}"!="No Address"}${addr wlo2}${endif}${alignr}${font Font Awesome 6 Free:style=Solid:pixelsize=13} ${font} ${execi 3600 curl ipinfo.io/ip}
${if_match "${addr enp0s25}"!="No Address"}${color1}${font Font Awesome 6 Free:style=Solid:pixelsize=13}${font}${goto 30}${downspeedf enp0s25}k/s (${totaldown enp0s25})${alignr}${font Font Awesome 6 Free:style=Solid:pixelsize=13} ${font} ${upspeedf enp0s25}k/s (${totalup enp0s25})${endif}
${if_match "${addr wlo2}"!="No Address"}${color1}${font Font Awesome 6 Free:style=Solid:pixelsize=13}${font}${goto 30}${downspeedf wlo2}k/s (${totaldown wlo2})${alignr}${font Font Awesome 6 Free:style=Solid:pixelsize=13} ${font} ${upspeedf wlo2}k/s (${totalup wlo2})${endif}
${color3}${hr}
${color1}${font Font Awesome 6 Free:style=Solid:pixelsize=13}${font}${goto 30}System
${font Font Awesome 6 Free:style=Solid:pixelsize=13}${font}${goto 30}${if_match "${hwmon 3 temp 1}">="90"}${color red}${hwmon 3 temp 1}°${color}${else}${hwmon 3 temp 1}°${endif}${goto 100}${font Font Awesome 6 Free:style=Solid:pixelsize=13} ${font} ${hwmon 3 fan 1} rpm${alignr}${font Font Awesome 6 Free:style=Solid:pixelsize=13} ${font} ${uptime}
${font DejaVu Sans Mono:pixelsize=12}
${color1}Process${alignr}PID %CPU %MEM${color2}
${top name 1}${alignr}${top pid 1} ${top cpu 1} ${top mem 1}
${top name 2}${alignr}${top pid 2} ${top cpu 2} ${top mem 2}
${top name 3}${alignr}${top pid 3} ${top cpu 3} ${top mem 3}
${top name 4}${alignr}${top pid 4} ${top cpu 4} ${top mem 4}
${top name 5}${alignr}${top pid 5} ${top cpu 5} ${top mem 5}
${top name 6}${alignr}${top pid 6} ${top cpu 6} ${top mem 6}
${top name 7}${alignr}${top pid 7} ${top cpu 7} ${top mem 7}
${top name 7}${alignr}${top pid 8} ${top cpu 8} ${top mem 8}
${color3}${hr}
]]