/
.conkyrc
124 lines (104 loc) · 3.99 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
--[[
Conky configuration file made by:
ermus19 @ github.com
Adapt it wisely!
2016
]]
conky.config={
alignment = 'top_right',
border_width = 1,
cpu_avg_samples = 4,
default_color = 'green',
default_outline_color = 'white',
default_shade_color = 'black',
draw_borders = false,
draw_graph_borders = true,
draw_outline = false,
draw_shades = true,
use_xft = true,
font = 'DejaVu Sans Mono:size=12',
-- Set gaps to adjust margins to the screen border.
gap_x = 40,
gap_y = 40,
-- Set conky window height and width *static size*
minimum_height = 30,
minimum_width = 250,
maximum_width = 250,
maximum_height = 30,
net_avg_samples = 4,
no_buffers = false,
out_to_console = false,
out_to_stderr = false,
extra_newline = false,
override_utf8_locale = true,
--Make conky run on desktop background and transparent
own_window=true,
own_window_type='desktop',
own_window_hints='undecorated, below, sticky, skip_taskbar, skip_pager',
own_window_transparent=true,
own_window_argb_visual=true,
background=false,
--Avoid blinking:
double_buffer=true,
total_run_times = 0,
update_interval = 1.0,
uppercase = false,
use_spacer = 'none',
show_graph_scale = false,
show_graph_range = false,
xftalpha = 1
}
--REPLACE enp5s0 with the name of your own network interface !
--$gw_iface return interface name.
--You will need to manually set the name for fetching the IP address.
--${font sans-serif:bold:size=8}HDD ${hr 2}
--${font sans-serif:normal:size=8}Temp: $alignc ${execi 300 telnet localhost 7634 | cut -c33-34; } C
conky.text = [[
${font sans-serif:bold:size=8}SYSTEM_INFO ${hr 2}
${font sans-serif:normal:size=8}Distribution: $alignr $distribution
Kernel:$kernel $alignr $machine
Hostname:$alignr$nodename
Uptime:$alignr$uptime
${font sans-serif:bold:size=8}CPU ${hr 2}
${font sans-serif:normal:size=8}${exec cat /proc/cpuinfo | grep 'model name' | cut -c 14-55 | uniq }
${cpugraph cpu1}
Core_1: ${cpu cpu1}% ${cpubar cpu1}
Core_2: ${cpu cpu2}% ${cpubar cpu2}
Core_3: ${cpu cpu3}% ${cpubar cpu3}
Core_4: ${cpu cpu4}% ${cpubar cpu4}
${font sans-serif:bold:size=8}CPU_Temperatures:
${font sans-serif:normal:size=8}${execi 8 sensors | grep Core | cut -c1-24}
${font sans-serif:bold:size=8}FILE_SYSTEM ${hr 2}
${font sans-serif:normal:size=8}/boot $alignc ${fs_used /boot} / ${fs_size /boot} $alignr ${fs_used_perc /boot}%
${fs_bar /boot}
${font sans-serif:normal:size=8}/ $alignc ${fs_used /} / ${fs_size /} $alignr ${fs_used_perc /}%
${fs_bar /}
${font sans-serif:normal:size=8}/home $alignc ${fs_used /home} / ${fs_size /home} $alignr ${fs_used_perc /home}%
${fs_bar /home}
$alignc ${font sans-serif:bold:size=8}GPU_Temperature: $alignc ${execi 10 nvidia-settings -query GPUCoreTemp | grep Attribute | cut -c48-49 |tr '\n' ' '}.0ºC
$alignc ${font sans-serif:bold:size=8}HDD_Temp: ${execi 10 hddtemp /dev/sda | cut -c34-35}.0ºC
${font sans-serif:bold:size=8}MEMORY ${hr 2}
${font sans-serif:normal:size=8}RAM $alignc $mem / $memmax $alignr $memperc%
$membar
SWAP $alignc ${swap} / ${swapmax} $alignr ${swapperc}%
${swapbar}
${font sans-serif:bold:size=8}TOP PROCESSES ${hr 2}
${font sans-serif:bold:size=8}NAME $alignr PID CPU
${font sans-serif:normal:size=8}${top name 1} $alignr ${top pid 1} ${top cpu 1}%
${top name 2} $alignr ${top pid 2} ${top cpu 2}%
${top name 3} $alignr ${top pid 3} ${top cpu 3}%
${top name 4} $alignr ${top pid 4} ${top cpu 4}%
${top name 5} $alignr ${top pid 5} ${top cpu 5}%
${top name 6} $alignr ${top pid 6} ${top cpu 6}%
${top name 7} $alignr ${top pid 7} ${top cpu 7}%
${top name 8} $alignr ${top pid 8} ${top cpu 8}%
${font sans-serif:bold:size=8}NETWORK ${hr 2}
${font sans-serif:normal:size=8}Interface: $alignr enp5s0
Default Gateway: $alignr $gw_ip
IP address: $alignr ${addr enp5s0}
Public IP address: $alignr ${exec curl curl -s icanhazip.com}
${downspeedgraph enp5s0}
Down_Speed:${downspeed enp5s0} kb/s $alignr Total: ${totaldown enp5s0}
${upspeedgraph enp5s0}
Up_Speed:${upspeed enp5s0} kb/s $alignr Total: ${totalup enp5s0}
]]