Skip to content

Instantly share code, notes, and snippets.

@kevinlipe
Last active December 20, 2022 17:49
Show Gist options
  • Save kevinlipe/ab4f9827194ebc6f8765c7fbeca8ede4 to your computer and use it in GitHub Desktop.
Save kevinlipe/ab4f9827194ebc6f8765c7fbeca8ede4 to your computer and use it in GitHub Desktop.
conky.config = {
-- conky configuration
--#############################################
-- Settings
--#############################################
background = true,
use_xft = true,
-- Xft font when Xft is enabled
font = 'Hack:size=9',
xftalpha = 0.5,
update_interval = 4,
total_run_times = 0,
own_window = true,
own_window_type = 'normal',
own_window_transparent = true,
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
double_buffer = true,
minimum_width = 200, minimum_height = 5,
maximum_width = 330,
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = true,
default_color = 'grey',
default_shade_color = 'red',
default_outline_color = 'green',
alignment = 'top_right',
gap_x = 15,
gap_y = 45,
no_buffers = true,
uppercase = false,
cpu_avg_samples = 2,
override_utf8_locale = false,
--Transparency Settings
own_window_argb_visual = true,
own_window_argb_value = 255,--#transparency maximum:255(no transparency), minimum:0(full transparency)
};
conky.text = [[
$nodename ${alignr}$sysname $kernel
$stippled_hr
${color white}CPU Intel i3-5005U ${offset 20} ${alignr}Speed: ${freq} MHz
${color}Uptime:$color ${alignr}$uptime
${color}Processes: $processes ${color white}Running:$color $running_processes ${alignr}Load:$color $loadavg
${color}Core 0: ${color white}${cpu cpu0}% ${color #666666}${cpubar cpu0 5}
${color}Core 1: ${color white}${cpu cpu1}% ${color #666666}${cpubar cpu1 5}
${color}Core 2: ${color white}${cpu cpu2}% ${color #666666}${cpubar cpu2 5}
${color}Core 3: ${color white}${cpu cpu3}% ${color #666666}${cpubar cpu3 5}
${color 666666}${cpugraph 888888 ffffff}
${color}Name PID CPU% MEM%
${color white}${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color lightgrey}${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color lightgrey}${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
$color$stippled_hr
${color white}Memory
${color}RAM: $mem/$memmax ${alignr}${color white}$memperc% ${color #666666}${membar 5,100}
${color}Mem usage PID ${alignr}MEM (%)
${color white}${top_mem name 1} ${top_mem pid 1} ${alignr}${top_mem mem_res 1} (${top_mem mem 1})
${color lightgrey}${top_mem name 2} ${top_mem pid 2} ${alignr}${top_mem mem_res 2} (${top_mem mem 2})
${color lightgrey}${top_mem name 3} ${top_mem pid 3} ${alignr}${top_mem mem_res 3} (${top_mem mem 3})
$stippled_hr
${color white}Battery${color}
${alignr}$battery
$stippled_hr
${color white}File systems:${color}
${exec df -h | grep "/dev/" | awk '{ printf "%s of %s \t : %s\n", $5, $2, $6 }' }
$stippled_hr
${color white}Network
${alignr}${color}wlan: ${addr wlp1s0}
]];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment