Skip to content

Instantly share code, notes, and snippets.

@mateuspontesm
Created October 22, 2019 14:11
Show Gist options
  • Save mateuspontesm/c025efa5abef971f5d6f28c744403c8f to your computer and use it in GitHub Desktop.
Save mateuspontesm/c025efa5abef971f5d6f28c744403c8f to your computer and use it in GitHub Desktop.
My conkyrc
--[[
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-2019 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 = 2,
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 = true,
own_window_type = 'normal',
own_window_argb_visual = true,
own_window_argb_value = 50,
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 = 0,
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 = 300, minimum_height = 0,
alignment = 'top_right',
};
conky.text = [[
${time %H:%M:%S}${alignr}${time %d-%m-%y}
${voffset -16}${font sans-serif:bold:size=18}${alignc}${time %H:%M}${font}
${voffset 4}${alignc}${time %A %B %d, %Y}
${font}${voffset -4}
${font sans-serif:bold:size=10}SYSTEM ${hr 2}
${font sans-serif:normal:size=8}$sysname $kernel $alignr $machine
Host:$alignr$nodename
Uptime:$alignr$uptime
File System: $alignr${fs_type}
Processes: $alignr ${execi 1000 ps aux | wc -l}
${font sans-serif:bold:size=10}CPU ${hr 2}
${font sans-serif:normal:size=8}${execi 1000 grep model /proc/cpuinfo | cut -d : -f2 | tail -1 | sed 's/\s//'}
${font sans-serif:normal:size=8}${cpugraph (cpu1 + cpu2 + cpu3 + cpu4)}
CPU 1: ${cpu cpu1}% ${cpubar cpu1}
#${font sans-serif:normal:size=8}${cpugraph cpu2}
CPU 2: ${cpu cpu2}% ${cpubar cpu2}
#${font sans-serif:normal:size=8}${cpugraph cpu3}
CPU 3: ${cpu cpu3}% ${cpubar cpu3}
#${font sans-serif:normal:size=8}${cpugraph cpu4}
CPU 4: ${cpu cpu4}% ${cpubar cpu4}
${font sans-serif:bold:size=10}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=10}DISK USAGE ${hr 2}
${font sans-serif:normal:size=8}/ $alignc ${fs_used /} / ${fs_size /} $alignr ${fs_used_perc /}%
${fs_bar /}
${font sans-serif:bold:size=10}TEMP ${hr 2}
CPU: ${alignr}${color6}${execi 2 sensors | grep CPU | cut -c 18-21}°C
GPU: ${alignr}${execi 2 sensors | grep GPU | cut -c 18-21}°C
${font sans-serif:bold:size=10}CPU PROCESSES ${hr 2}
${font sans-serif:normal:size=8}Name $alignr PID CPU% MEM%${font sans-serif:normal:size=8}
${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}%
${font sans-serif:bold:size=10}MEM PROCESSES ${hr 2}
${font sans-serif:normal:size=8}Name $alignr PID CPU% MEM%${font sans-serif:normal:size=8}
${top name 1} $alignr ${top_mem pid 1} ${top_mem cpu 1}% ${top_mem mem 1}%
${top name 2} $alignr ${top_mem pid 2} ${top_mem cpu 2}% ${top_mem mem 2}%
${top name 3} $alignr ${top_mem pid 3} ${top_mem cpu 3}% ${top_mem mem 3}%
${font Ubuntu:bold:size=10}NETWORK ${hr 2}
${font sans-serif:normal:size=8}Local IPs:${alignr}External IP:
${execi 1000 ip a | grep inet | grep -vw lo | grep -v inet6 | cut -d \/ -f1 | sed 's/[^0-9\.]*//g'} ${alignr}${execi 1000 wget -q -O- http://ipecho.net/plain; echo}
${font sans-serif:normal:size=8}Down: ${downspeed enp3s0} ${alignr}Up: ${upspeed enp3s0}
${color lightgray}${downspeedgraph enp3s0 50,130 } ${alignr}${upspeedgraph enp3s0 50,130 }$color
]];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment