Skip to content

Instantly share code, notes, and snippets.

@Xnuvers007
Created July 11, 2022 23:12
Show Gist options
  • Save Xnuvers007/a05f92c8aa2f67192acbc1b1e9840e93 to your computer and use it in GitHub Desktop.
Save Xnuvers007/a05f92c8aa2f67192acbc1b1e9840e93 to your computer and use it in GitHub Desktop.
this file is config for conky
-- 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 = {
alignment = 'bottom_right',
border_inner_margin = 5,
border_outer_margin = 0,
xinerama_head = 1,
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
imlib_cache_size = 0,
text_buffer_size = 32768,
double_buffer = true,
override_utf8_locale = true,
own_window_argb_visual = true,
own_window_argb_value = 50,
double_buffer = true,
alignment = 'top_right',
background = false,
border_width = 1,
cpu_avg_samples = 2,
default_color = 'white',
default_outline_color = 'white',
default_shade_color = 'white',
draw_borders = false,
draw_graph_borders = false,
draw_outline = false,
draw_shades = false,
use_xft = true,
font = 'Ubuntu Mono:size=12',
gap_x = 0,
gap_y = 33,
minimum_height = 5,
minimum_width = 5,
net_avg_samples = 2,
no_buffers = true,
out_to_console = false,
out_to_stderr = false,
extra_newline = false,
own_window = true,
own_window_class = 'Conky',
own_window_type = 'desktop',
stippled_borders = 0,
update_interval = 1.0,
uppercase = false,
use_spacer = 'none',
show_graph_scale = false,
show_graph_range = false,
font = 'DejaVu Sans Mono',
template3 = "...Name=${color3}\\3$color"
}
conky.text = [[
${color aqua}${font DejaVu Sans Mono:bold:underlined:size=10}Xnuvers007${alignr}${time %d-%m-%y}
${voffset -16}${font sans-serif:bold:size=12}${alignc}${time %H:%M:%S}${font}
${voffset 4}${alignc}${time %A %B %d, %Y}
${font}${voffset -4}
${font sans-serif:bold:size=10}${color red}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}${color yellow}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}
CPU: ${cpu cpu1}% ${cpubar cpu1}
${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}
${goto 10}${font FontAwesome:bold:size=10}${font} ${color #00FF00}Storage Drives${color}
${font DejaVu Sans Mono:bold:size=10}${color red}Root${color} ($color${fs_type /}${color0}) ${alignr}$color${diskio_write /dev/sda6}${color0}/$color${diskio_read /dev/sda6}
${fs_used /}${color0}/$color${fs_size /} ${alignr}$color${fs_used_perc /}% ${color0}${fs_bar 8,100 /}
${color aqua}Home ${color}($color${fs_type /home}${color0}) ${alignr}$color${diskio_write /dev/sda7}${color0}/$color${diskio_read /dev/sda7}
${fs_used /home}${color0}/$color${fs_size /home} ${alignr}$color${fs_used_perc /home}% ${color0}${fs_bar 8,100 /}
${font Ubuntu:bold:size=10}${color orange}NETWORK ${hr 2}
${font sans-serif:normal:size=8}Local IPs:${alignr}External IP:
${execi 1000 ip a | grep inet | grep -vw wlan | 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 wlan0} ${alignr}Up: ${upspeed wlan0}
${color lightgray}${downspeedgraph wlan0 30,50 } ${alignr}${upspeedgraph wlan0 30,50 }$color
${color green}${font sans-serif:bold:size=10}TOP 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}%
${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 8} $alignr ${top pid 8} ${top cpu 8}% ${top mem 8}%
${top name 9} $alignr ${top pid 9} ${top cpu 9}% ${top mem 9}%
${top name 10} $alignr ${top pid 10} ${top cpu 10}% ${top mem 10}%
]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment