My Conky config file for Phosh - lat - 04-21-2022
I created some Conky eye candy for myself and wanted to share. A screenshot is attached, and here's my
~/.conkyrc
Code: conky.config = {
alignment = 'top_left',
background = false,
border_width = 1,
cpu_avg_samples = 2,
default_color = 'yellow',
default_outline_color = 'white',
default_shade_color = 'white',
double_buffer = true,
draw_borders = false,
draw_graph_borders = true,
draw_outline = false,
draw_shades = false,
extra_newline = false,
font = 'Liberation Mono:size=10',
gap_x = 8,
gap_y = 40,
minimum_height = 734,
minimum_width = 394,
maximum_height = 734,
maximum_width = 394,
net_avg_samples = 2,
no_buffers = true,
out_to_console = false,
out_to_ncurses = false,
out_to_stderr = false,
out_to_x = true,
own_window = true,
own_window_class = 'Conky',
own_window_type = 'desktop',
show_graph_range = false,
show_graph_scale = false,
stippled_borders = 0,
update_interval = 1.0,
uppercase = false,
use_spacer = 'none',
use_xft = true,
}
conky.text = [[
${color 8888ff}${cpugraph cpu1 59,59} ${cpugraph cpu2 59,59} ${cpugraph cpu3 59,59} ${cpugraph cpu4 59,59} ${cpugraph cpu5 59,59} ${cpugraph cpu6 59,59}
${cpu cpu0}%${tab 16}cpu $freq MHz $acpitemp°C${tab 90}${cpubar 6}
$color$memperc%${tab 16}ram${tab 36}of $memmax${tab 90}${color 888800}${membar 6}
$color$swapperc%${tab 16}swap${tab 36}of $swapmax${tab 90}${color 888800}${swapbar 6}
${color ffffff}${fs_free /mnt/emc}${tab 36}${color bbbbbb}emc free${tab 90}${color 666666}${fs_bar 6 /mnt/emc}
${color ffffff}${fs_free /}${tab 36}${color bbbbbb}sd free${tab 90}${color 666666}${fs_bar 6 /}
$hr
${color ffffff}$processes ${color grey}processes${tab 48}cpu% ram% ${color ffffff}$running_threads ${color grey}threads
${color ffffff}${top name 1}${color grey}${top cpu 1}${top mem 1}
${top name 2}${top cpu 2}${top mem 2}
${top name 3}${top cpu 3}${top mem 3}
${top name 4}${top cpu 4}${top mem 4}
${color 666666}$hr
${color 880000}Upload Speed (10 Mbps max value) 1min 0
${color ff0000}${upspeedgraph wlan0 59,384 100000000 -l}
${color 00bb00}${downspeedgraph wlan0 59,384 100000000 -l}
${color ff0000}port${tab 24}ip${tab 90}host ${tcp_portmon 32768 65535 count} out
${tcp_portmon 32768 65535 rport 0}${tab 24}${tcp_portmon 32768 65535 rip 0}${tab 90}${tcp_portmon 32768 65535 rhost 0}
${tcp_portmon 32768 65535 rport 1}${tab 24}${tcp_portmon 32768 65535 rip 1}${tab 90}${tcp_portmon 32768 65535 rhost 1}
${tcp_portmon 32768 65535 rport 2}${tab 24}${tcp_portmon 32768 65535 rip 2}${tab 90}${tcp_portmon 32768 65535 rhost 2}
${tcp_portmon 32768 65535 rport 3}${tab 24}${tcp_portmon 32768 65535 rip 3}${tab 90}${tcp_portmon 32768 65535 rhost 3}
${color 00ff00}port${tab 24}ip${tab 90}host ${tcp_portmon 1 32767 count} in
${tcp_portmon 1 32767 rport 0}${tab 24}${tcp_portmon 1 32767 rip 0}${tab 90}${tcp_portmon 1 32767 rhost 0}
${tcp_portmon 1 32767 rport 1}${tab 24}${tcp_portmon 1 32767 rip 1}${tab 90}${tcp_portmon 1 32767 rhost 1}
${tcp_portmon 1 32767 rport 2}${tab 24}${tcp_portmon 1 32767 rip 2}${tab 90}${tcp_portmon 1 32767 rhost 2}
${tcp_portmon 1 32767 rport 3}${tab 24}${tcp_portmon 1 32767 rip 3}${tab 90}${tcp_portmon 1 32767 rhost 3}
${color 666666}$hr
$color${wireless_link_qual_perc wlan0}% ${color aaaa00}wifi link quality${tab 108}$color${wireless_bitrate wlan0} ${color aaaa00}bitrate
${color aaaa00}Uploaded Downloaded${tab 108}$color$uptime_short ${color aaaa00}uptime
$color${totalup wlan0} ${totaldown wlan0}${tab 108}${tcp_portmon 1 65535 count}${if_existing /sys/class/net/wlan0/operstate No network!}${color #ff0000} down${endif} ${color aaaa00}tcp connections
${color 666666}$hr
]]
It's optimized for Phosh with 175% magnification in Gnome Settings (I wonder why the Settings give only coarse values of 100%, 125%, 150%, 175%, 200% - I'd prefer to be able to fine tune screen magnification).
It works best in Portrait mode.
If rendering gets affected, I just kill conky and restart - takes a second to do (I placed Conky in Phosh's Favorites).
I'm gradually moving towards an all-Wayland setup, so I wonder how the X-based Conky will transition there if at all.
Appreciate any responses!
|