Last active
August 10, 2021 06:08
-
-
Save LordShedy/c562d9b246249a223ee401a24466816d to your computer and use it in GitHub Desktop.
Conky
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- vim: ts=4 sw=4 noet ai cindent syntax=lua | |
conky.config = { | |
alignment = 'top_left', | |
background = false, | |
border_width = 0.5, | |
cpu_avg_samples = 4, | |
default_color = 'white', | |
default_outline_color = 'grey', | |
default_shade_color = 'black', | |
draw_borders = true, | |
draw_graph_borders = true, | |
draw_outline = false, | |
draw_shades = false, | |
use_xft = true, | |
font = 'DejaVu Sans Mono:size=10', | |
gap_x = 5, | |
gap_y = 50, | |
minimum_height = 5, | |
minimum_width = 5, | |
net_avg_samples = 2, | |
double_buffer = true, | |
out_to_console = false, | |
out_to_stderr = false, | |
extra_newline = false, | |
own_window = true, | |
own_window_colour = '000000', | |
own_window_class = 'Conky', | |
own_window_argb_visual = true, | |
own_window_argb_count = 0, | |
own_window_type = 'dock', | |
own_window_transparent = true, | |
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager', | |
stippled_borders = 0, | |
update_interval = 1, | |
uppercase = false, | |
use_spacer = 'none', | |
show_graph_scale = false, | |
show_graph_range = false | |
} | |
conky.text = [[ | |
${font Entopia:bold:size=12}${color orange}ABOUT ${hr 2}${font DejaVu Sans Mono:size=10}${color0} | |
${offset 15}Hostname: ${alignr}${exec hostname}${voffset 2.5}${voffset 2.5} | |
${offset 15}Architecture: ${alignr}${exec hostnamectl | grep Architecture | cut -c21-30}${voffset 2.5}${voffset 2.5} | |
${offset 15}OS Name: ${alignr}${exec hostnamectl | grep System | cut -c21-27}${voffset 2.5} | |
${offset 15}OS Version: ${alignr}${exec hostnamectl | grep System | cut -c28-35}${voffset 2.5} | |
${offset 15}Mother OS: ${alignr}${exec egrep "^ID=" /etc/os-release | cut -c4-20 | sed 's/.*/\u&/'}${voffset 2.5} | |
${offset 15}Mother Codename: ${alignr}${exec egrep "^VERSION_CODENAME=" /etc/os-release | cut -c18-30 | sed 's/.*/\u&/'}${voffset 2.5} | |
${offset 15}Grandmother OS: ${alignr}${exec grep "ID_LIKE" /etc/os-release | cut -c9-25 | sed 's/.*/\u&/'}${voffset 2.5} | |
${offset 15}Kernel: ${alignr}${exec hostnamectl | grep Kernel | cut -c21-31}${voffset 2.5} | |
${font Entopia:bold:size=12}${color orange}PERFORMANCE ${hr 2}${font DejaVu Sans Mono:size=10}${color0} | |
${offset 15}${color FFFDE2}System Uptime ${alignr}$color $uptime${voffset 2.5} | |
${offset 15}CPU Temperature: ${alignr}${acpitemp}°C${voffset 2.5} | |
${offset 15}${color FFFDE2}RAM :$color $mem $memperc%${voffset 2.5} | |
${offset 15}${membar 4}${voffset 2.5} | |
${offset 15}Core 1 ${color ff8300}${cpubar cpu1 6}${color FFFDE2}${voffset 2.5} | |
${offset 15}Core 2 ${color ff8300}${cpubar cpu2 6}${color FFFDE2}${voffset 2.5} | |
${offset 15}Core 3 ${color ff8300}${cpubar cpu3 6}${color FFFDE2}${voffset 2.5} | |
${offset 15}Core 4 ${color ff8300}${cpubar cpu4 6}${color FFFDE2}${voffset 2.5} | |
${font Entopia:bold:size=12}${color orange}DISK ${hr 2}${font DejaVu Sans Mono:size=10}${color0} | |
${offset 15}${fs_used /} used${voffset 2.5} | |
${offset 15}${fs_free /} free${voffset 2.5} | |
${offset 15}${fs_size /} total${voffset 2.5} | |
${offset 15}${fs_bar 10,300 /}${voffset 2.5} | |
${font Entopia:bold:size=12}${color orange}NETWORK ${hr 2}${font DejaVu Sans Mono:size=10}${color0} | |
${offset 15}${color0}Local IP: ${alignr}${addrs wlp3s0}${voffset 2.5} | |
${offset 15}Public IP: ${alignr}${exec curl -s ipinfo.io/ip}${voffset 2.5} | |
${offset 15}City: ${alignr}${exec curl -s ipinfo.io/`curl -s ipinfo.io/ip`/geo | jq .city | tr -d '"'}${voffset 2.5} | |
${offset 15}Region: ${alignr}${exec curl -s ipinfo.io/`curl -s ipinfo.io/ip`/geo | jq .region | tr -d '"'}${voffset 2.5} | |
${offset 15}Country: ${alignr}${exec curl -s ipinfo.io/`curl -s ipinfo.io/ip`/geo | jq .country | tr -d '"'}${voffset 2.5} | |
${offset 15}Download: ${alignr}${totaldown wlp3s0}${voffset 2.5} | |
${offset 15}Upload: ${alignr}${totalup wlp3s0}${voffset 2.5} | |
${font Entopia:bold:size=12}${color orange}PROCESSES ${hr 2}${font DejaVu Sans Mono:size=10}${color0} | |
${offset 15}${font}${color FFFDE2}Procs:$color $processes ${color FFFDE2}Run:$color $running_processes | |
${offset 15}${font Noto sans:size=8}${color EDE0FF}Name ${alignr}PID CPU% MEM% | |
${offset 15}${color FF7878}${top name 1} ${alignr}${top pid 1} ${top cpu 1} ${top mem 1} | |
${offset 15}${color FF7878}${top name 2} ${alignr}${top pid 2} ${top cpu 2} ${top mem 2} | |
${offset 15}${color FF7878}${top name 3} ${alignr}${top pid 3} ${top cpu 3} ${top mem 3} | |
${offset 15}${color FF7878}${top name 4} ${alignr}${top pid 4} ${top cpu 4} ${top mem 4} | |
${offset 15}${color FF7878}${top name 5} ${alignr}${top pid 5} ${top cpu 5} ${top mem 5} | |
${offset 15}${color FF7878}${top name 6} ${alignr}${top pid 6} ${top cpu 6} ${top mem 6} | |
]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment