This repository has been archived by the owner on Dec 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconkyrc
157 lines (139 loc) · 8.5 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
145
146
147
148
149
150
151
152
153
154
155
156
157
-- vim: ts=4 sw=4 noet ai cindent syntax=lua
--[[
Maintainer: [email protected] / www.jeffskinnerbox.me
Version: 1.0.4
.conkyrc - derived from various examples across the 'net
Designed to support a 4 core processer running Ubuntu
You can start conky via
conky --pause=5 --config=/home/jeff/.conky/conkyrc
You can restart conky by running
killall -SIGUSR1 conky
]]
conky.config = {
-- ------------------------ Conky's Run Time Parameters -----------------------
update_interval = 2.0, -- Conky update interval in seconds
total_run_times = 0, -- Number of updates before quitting. Set to zero to run forever.
no_buffers = true, -- Subtract file system buffers from used memory?
cpu_avg_samples = 2, -- Number of cpu samples to average. Set to 1 to disable averaging
net_avg_samples = 2, -- Number of net samples to average. Set to 1 to disable averaging
-- ------------------------ Conky's General Look & Feel -----------------------
-- --- defualt values ---
default_color = 'grey', -- Default color and border color
default_bar_width = 0,
default_bar_height = 6, -- Specify a default width and height for bars
default_gauge_width = 25,
default_gauge_height = 25, -- Specify a default width and height for gauges
default_graph_width = 0,
default_graph_height = 25, -- Specify a default width and height for graphs
default_outline_color = 'green', -- Default border and text outline color
default_shade_color = 'yellow', -- Default border and text shading color
-- --- predefined colors - http://www.kgym.jp/freesoft/xrgb.html ---
color0 = '#FFFFFF', -- white
color1 = '#FFA500', -- orange
color2 = '#B22222', -- firebrick
color3 = '#696969', -- dim gray
color4 = '#D3D3D3', -- light gray
color5 = '#2F4F4F', -- dark slate gray
color6 = '#FFEC8B', -- light golden rod
color7 = '#54FF9F', -- sea green
color8 = '#FF8C69', -- salmon
color9 = '#FFE7BA', -- wheat
-- --- window layout & options ---
own_window = true, -- Conky creates its own window instead of using desktop
own_window_class = 'Conky',
own_window_type = 'normal', -- If own_window is yes, use type normal, desktop, or override
own_window_argb_visual =false,
own_window_transparent = false, -- Use pseudo transparency with own_window?
own_window_colour = 'black', -- If own_window_transparent is no, set the background colour
double_buffer = true, -- Use double buffering (reduces flicker)
use_spacer = 'right', -- Adds spaces to stop object from moving
maximum_width = 600, -- Maximum width of window in pixels
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
-- --- window placment ---
alignment = 'top_right', -- window placement can be top_right, top_left, bottom_left, bottom_right
xinerama_head = 1, -- for multi-display, select the display to post conky (index starts at 0)
-- --- borders, margins, and outlines ---
draw_graph_borders = true, -- Do you want to draw borders around graphs
border_inner_margin = 9, -- Window's inner border margin (in pixels)
border_outer_margin = 5, -- Window's outer border margin (in pixels)
gap_x = 10, -- Gap between borders of screen and text (on x-axis)
gap_y = 40, -- Gap between borders of screen and text (on y-axis)
border_width = 10, -- Window's border width (in pixels)
-- --- Text ---
draw_outline = false, -- Do you want ot draw outlines
draw_shades = false, -- Do you want to draw shades
draw_borders = false, -- Do you want to draw borders around text
uppercase = false, -- set to yes if you want all text to be in uppercase
use_xft = true, -- use the X FreeType interface library (anti-aliased font)
font = 'Monospace:size=7:weight=bold' -- Xft font to be used
}
-- -------------- Conky's Displayed System Monitoring Parameters --------------
conky.text = [[
${color1}SYSTEM INFORMATION ${hr 2}$color
${color0}System: $color$nodename ${alignr}${color0}Uptime: $color$uptime
${color0}Kernel: $color$kernel${alignr}${color0}Arch: $color$machine
${color0}Distribution: $color${execi 99999 lsb_release --description | awk '{ print $2" "$3 }'} / ${execi 99999 lsb_release --codename | awk '{ print $2" "$3 }'}
${color0}CPU Type: $color${execi 99999 grep 'model name' /proc/cpuinfo | awk '{ print $6 }' | sed '2,$d'} / ${execi 99999 grep 'model name' /proc/cpuinfo | wc -l} Cores
${color0}CPU Speed: $color${freq 0} MHz Current / ${execi 99999 grep 'model name' /proc/cpuinfo | awk '{ print $9 }' | sed '2,$d'} Max
${color0}Processor Temperature: $color${execi 3 sensors | grep 'Package id' | awk '{print $4}'}
${color1}CPU ${hr 2}$color
${color0}CPU Usage:$color ${cpu cpu0}% ${color7}${cpubar cpu0}
${cpugraph cpu0 0000ff 00ff00}$color
${color0}Core 1:$color ${freq 1} MHz ${cpu cpu1}% ${color5}${cpubar cpu1}$color
${color0}Core 2:$color ${freq 2} MHz ${cpu cpu2}% ${color5}${cpubar cpu2}$color
${color0}Core 3:$color ${freq 3} MHz ${cpu cpu3}% ${color5}${cpubar cpu3}$color
${color0}Core 4:$color ${freq 4} MHz ${cpu cpu4}% ${color5}${cpubar cpu4}$color
${color1}TOP 5 PROCESSES ${hr 2}$color
${color0}Processes:$color $processes ${color0}Running:$color $running_processes
${color0}Threads:$color $threads ${color0}Running:$color $running_threads
${stippled_hr 2}
${color0}CPU Usage$color
${color3}NAME PID CPU% MEM$color
${color2}${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}$color
${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
${top name 5} ${top pid 5} ${top cpu 5} ${top mem 5}
${stippled_hr 2}
${color0}Mem Usage$color
${color3}NAME PID CPU% MEM$color
${color2}${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}$color
${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
${top_mem name 4} ${top_mem pid 4} ${top_mem cpu 4} ${top_mem mem 4}
${top_mem name 5} ${top_mem pid 5} ${top_mem cpu 5} ${top_mem mem 5}
${color1}MEMORY & SWAP ${hr 2}$color
${color0}RAM Usage: ${color}$mem / $memmax
$memperc% ${color6}${membar}$color
${color0}Swap Usage: ${color}$swap / $swapmax
$swapperc% ${color6}${swapbar}$color
${color1}FILE SYSTEM ${hr 2}$color
${color0}boot:$color ${fs_used /boot/efi} / ${fs_size /boot/efi}
${fs_used_perc /boot/efi}% ${color8}${fs_bar /boot/efi}$color
${color0}root:$color ${fs_used /} / ${fs_size /}
${fs_used_perc /}% ${color8}${fs_bar /}$color
${color0}home:$color ${fs_used /home} / ${fs_size /home}
${fs_used_perc /home}% ${color8}${fs_bar /home}$color
${color0}backup:$color ${fs_used /mnt/backup} / ${fs_size /mnt/backup}
${fs_used_perc /mnt/backup}% ${color8}${fs_bar /mnt/backup}$color
${color1}HARD DRIVE I/O ${hr 2}$color
${color0}Device:$color /dev/sda
${color0}Reads: $color${diskio_read /dev/sda}/s${alignr}${color0}Writes: $color${diskio_write /dev/sda}/s
${color8}${diskiograph_read /dev/sda 25,120 33FF00 FF3333 scale -t}$color${alignr}${color8}${diskiograph_write /dev/sda 25,120 33FF00 FF3333 scale -t}$color
${color0}Device:$color /dev/md0
${color0}Reads: $color${diskio_read /dev/md0}/s${alignr}${color0}Writes: $color${diskio_write /dev/md0}/s
${color8}${diskiograph_read /dev/md0 25,120 33FF00 FF3333 scale -t}$color${alignr}${color8}${diskiograph_write /dev/md0 25,120 33FF00 FF3333 scale -t}$color
${color1}NETWORKING ${hr 2}$color
${color0}Wired (eno1 - ${addr eno1})
${color0}Down:$color ${downspeed eno1}/s ${alignr}${color0}Up:$color ${upspeed eno1}/s
${color0}Total:$color ${totaldown eno1} ${alignr}${color0}Total: $color${totalup eno1}
${color0}${downspeedgraph eno1 25,120 000000 00ff00} ${alignr}${upspeedgraph eno1 25,120 000000 ff0000}$color
${stippled_hr 2}
${color0}Wireless (wlx94dbc95110ca - ${addr wlx94dbc95110ca})
${color0}Down:$color ${downspeed wlx94dbc95110ca}/s ${alignr}${color0}Up:$color ${upspeed wlx94dbc95110ca}/s
${color0}Total:$color ${totaldown wlx94dbc95110ca} ${alignr}${color0}Total: $color${totalup wlx94dbc95110ca}
${color0}${downspeedgraph wlx94dbc95110ca 25,120 000000 00ff00} ${alignr}${upspeedgraph wlx94dbc95110ca 25,120 000000 ff0000}$color
${color1}LOG FILES ${hr 2}$color
${color0}SysLog Messages$color
${color4}${font Arial:size=7}${execi 30 tail -n3 /var/log/syslog | fold -w50}$color$font
]]