Skip to content

Instantly share code, notes, and snippets.

@HexagonWin
Created July 24, 2021 13:05
Show Gist options
  • Save HexagonWin/7d4d4a5afacb5fb70a31bd2abc866dfc to your computer and use it in GitHub Desktop.
Save HexagonWin/7d4d4a5afacb5fb70a31bd2abc866dfc to your computer and use it in GitHub Desktop.
Conky Rc file for personal desktop. Based on somebody else's but I don't know the source.
-- 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 = {
update_interval = 1,
cpu_avg_samples = 8,
net_avg_samples = 2,
out_to_console = false,
override_utf8_locale = true,
double_buffer = true,
no_buffers = true,
text_buffer_size = 32768,
imlib_cache_size = 0,
own_window = false,
own_window_type = 'conky',
own_window_argb_visual = true,
own_window_argb_value = 150,
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
border_inner_margin = 5,
border_outer_margin = 0,
xinerama_head = 1,
alignment = 'bottom_right',
gap_x = 29,
gap_y = 33,
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,
use_xft = true,
font = 'Ubuntu Mono:size=12',
xftalpha = 0.8,
uppercase = false,
default_color = 'white',
own_window_colour = '#000000',
minimum_width = 400, minimum_height = 0,
alignment = 'top_right',
};
conky.text = [[
${voffset -16}${font sans-serif:bold:size=36}${alignc}${time %H:%M:%S}${font}
${voffset 6}${font sans-serif:normal:size=18}${alignc}${time %Y/%m/%d}
${font}${voffset -4}
${font sans-serif:bold:size=14}SYSTEM ${hr 2}
${font sans-serif:normal:size=10}CPU : ${color #FCAF3E}${execi 1000 grep model /proc/cpuinfo | cut -d : -f2 | tail -1 | sed 's/\s//'}
${font sans-serif:normal:size=10}$sysname $kernel $alignr $machine
Uptime:$alignr$uptime
${font sans-serif:bold:size=14}CPU ${hr 2}
${font sans-serif:normal:size=10}${color1}CPU Temp : ${hwmon 0 temp 1} °C
CPU0 : ${freq 1} MHz ${alignr}${cpubar cpu0 6,250} ${cpu cpu1} %
CPU1 : ${freq 2} MHz ${alignr}${cpubar cpu2 6,250} ${cpu cpu2} %
CPU2 : ${freq 3} MHz ${alignr}${cpubar cpu3 6,250} ${cpu cpu3} %
CPU3 : ${freq 4} MHz ${alignr}${cpubar cpu4 6,250} ${cpu cpu4} %
CPU4 : ${freq 5} MHz ${alignr}${cpubar cpu5 6,250} ${cpu cpu5} %
CPU5 : ${freq 6} MHz ${alignr}${cpubar cpu6 6,250} ${cpu cpu6} %
CPU6 : ${freq 7} MHz ${alignr}${cpubar cpu7 6,250} ${cpu cpu7} %
CPU7 : ${freq 8} MHz ${alignr}${cpubar cpu8 6,250} ${cpu cpu8} %
CPU8 : ${freq 9} MHz ${alignr}${cpubar cpu9 6,250} ${cpu cpu9} %
CPU9 : ${freq 8} MHz ${alignr}${cpubar cpu10 6,250} ${cpu cpu10} %
CPU10 : ${freq 9} MHz ${alignr}${cpubar cpu11 6,250} ${cpu cpu11} %
CPU11 : ${freq 9} MHz ${alignr}${cpubar cpu12 6,250} ${cpu cpu12} %
${font sans-serif:bold:size=14}MEMORY ${hr 2}
${font sans-serif:normal:size=10}RAM $alignc $mem / $memmax $alignr $memperc%
${membar 6,400 }
SWAP $alignc ${swap} / ${swapmax} $alignr ${swapperc}%
${swapbar 6,400 }
${font sans-serif:bold:size=14}DISK USAGE ${hr 2}
${font sans-serif:normal:size=10}${alignc} ${fs_used /} / ${fs_size /} ${alignr} ${fs_used_perc /}%
${fs_bar 6,400}
${font Ubuntu:bold:size=14}NETWORK ${hr 2}
${font sans-serif:normal:size=10}Local IPs : ${execi 1000 ip a | grep inet | grep -vw lo | grep -v inet6 | cut -d \/ -f1 | sed 's/[^0-9\.]*//g'} ${alignr}External IP : ${execi 1000 wget -q -O- http://ipecho.net/plain; echo}
${font sans-serif:normal:size=10}Down: ${downspeed enp6s0} ${alignr}Up: ${upspeed enp6s0}
${color lightgray}${downspeedgraph enp6s0 40,190 } ${alignr}${upspeedgraph enp6s0 40,190 }$color
${font sans-serif:bold:size=14}TOP PROCESSES ${hr 2}
${font sans-serif:bold:size=10}Name $alignr PID CPU% MEM%${font sans-serif:normal:size=10}
${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}%
]];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment