Skip to content

Instantly share code, notes, and snippets.

@DocBrown101
Created October 24, 2024 06:26
Show Gist options
  • Select an option

  • Save DocBrown101/45a4984613bb9e12de99b85c97a83f76 to your computer and use it in GitHub Desktop.

Select an option

Save DocBrown101/45a4984613bb9e12de99b85c97a83f76 to your computer and use it in GitHub Desktop.
Simple conkey theme for 8 cores
conky.config = {
-- http://conky.sourceforge.net/config_settings.html
-- http://conky.sourceforge.net/variables.html
background = false, -- set to false when editing for errors, if true, Conky will be forked to background when started.
-- Placement --
alignment = 'top_right', -- Aligned position on screen, top_left, top_right, top_middle or none
gap_x = 0,
--gap_x = -1910, --second screen
gap_y = 0,
-- Window --
own_window = true,
own_window_type = 'normal', -- options are: normal/override/dock/desktop/panel
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
own_window_transparent = false,
own_window_argb_visual = true,
own_window_argb_value = 100, -- semi-transparent
out_to_x = true,
out_to_wayland = false,
-- Textual --
use_xft = true, -- anti-aliased font and stuff
override_utf8_locale = true, -- Force UTF8? requires XFT
xftalpha = 1, -- Alpha of Xft font. Must be a value at or between 1 and 0.
short_units = true, -- Shortens units to a single character (kiB->k, GiB->G, etc.). Default is off.
uppercase = false, -- set to = true if you want all text to be in uppercase
font = 'DejaVu Sans Mono:size=10',
update_interval = 1,
-- Colors --
default_color = 'lightgrey',
default_shade_color = 'white',
default_outline_color = 'white',
color1 = '1261A0', -- Blue
color2 = 'FFA54F', -- Tan 1
color3 = 'FFA500', -- Orange
-- Graphical --
border_inner_margin = 0,
border_outer_margin = 0,
stippled_borders = 0,
border_width = 12,
draw_borders = false,
draw_shades = false,
draw_outline = false,
draw_graph_borders = true,
-- layouting headline
template0 = [[${font Liberation Sans:bold:size=11}${color1}\1 ${color1}${stippled_hr}${font}${color}]],
-- layouting LAN
template1 = [[IP $color3${addr \1} ${alignr}${color}Gateway ${color3}${gw_ip \1}]],
template2 = [[${template5 Totaldown}${totaldown \1} ${template6 Totalup}${totalup \1}]],
template3 = [[${color3}${downspeedgraph \1 30,155 000000 ff0000} ${alignr}${upspeedgraph \1 30,155 000000 00ff00}$color]],
template4 = [[${template5 Download}${downspeed \1}/s ${template6 Upload}${upspeed \1}/s]],
-- left right alignment
template5 = [[${color}\1${color3} ]],
template6 = [[${color}${alignr}\1${color3} ]],
-- Various settings --
total_run_times = 0, -- Set to zero to run forever.
imlib_cache_size = 0,
cpu_avg_samples = 2,
net_avg_samples = 2,
diskio_avg_samples = 10,
double_buffer = true, --Use double buffering (reduces flicker, may not work for everyone)
no_buffers = true, --Subtract file system buffers from used memory?
--if_up_strictness = 'address',
use_spacer = 'none', --Add spaces to keep things from moving about? This only affects certain objects.
default_bar_width = 140,
default_bar_height = 6
}
conky.text = [[
${font Lato:size=15:style=bold}${color3}${time %R} - ${time %A}${color}${font} ${alignr}${color3}${execi 3600 date +"%x"}
${template6 Quarter:}${execi 3600 date +"%q"}
${template6 Week:}${execi 3600 date +"%V"}
${template0 System}
${color3}${execi 3600 whoami}$color @ $nodename ${template6 Uptime:}$uptime_short
$color${execi 3600 cat /etc/os-release | grep '^PRETTY_NAME' | cut -d '"' -f 2}${template6 Kernel:}$kernel
${template0 Processor}
Usage: ${color3}${cpu cpu0}%${color} ${alignr}${execi 3600 awk -F ': ' '/model name/{gsub(/Intel\(R\) Core\(TM\)| @|11th Gen| CPU/, "", $2); print $2; exit}' /proc/cpuinfo | sed -e 's/^[ \t]*//'} @ ${color3}${freq_g} GHz$color
CPU▼ Cores➤ ${alignr}1 ${color3}${cpubar cpu1 10,25}$color 2 ${color3}${cpubar cpu2 10,25}$color 3 ${color3}${cpubar cpu3 10,25}$color 4 ${color3}${cpubar cpu4 10,25}${color3}
${cpubar cpu0 10,125}
${cpugraph 30,328 000000 FFA500}${color}
Running Processes ${color3}${running_processes} ${template6 Processes}${processes}${color}
Running Threads ${color3}${running_threads}
${template0 Memory\ &\ Filesystem}
RAM $color3 $mem $alignr $memperc%$color of $memmax
$color3 ${membar 4,248} $color
SWAP $color3 $swap $alignr $swapperc%$color of $swapmax
$color3 ${swapbar 4,248} $color
/ $color3 ${fs_used /} $alignr ${fs_used_perc /}%$color of ${fs_size /}
$color3 ${fs_bar 4,248 /}
${diskiograph_write 30,155 000000 ff0000} ${alignr}${diskiograph_read 30,155 000000 00ff00}$color
${template5 IO\ Write}${diskio_write}/s ${template6 IO\ Read}${diskio_read}/s
${template0 Network}
${template1 wlp3s0}
${template2 wlp3s0}
${template3 wlp3s0}
${template4 wlp3s0}
]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment