My Conky config file for Phosh
#1
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!


Attached Files Thumbnail(s)
   
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Question Calls: ALSA UCM config not making a difference with volume lightwo 6 1,443 05-17-2024, 04:23 AM
Last Post: lightwo
  Command lines to remove the Phosh UI dorkydev 1 723 02-12-2024, 11:56 AM
Last Post: nekonosuke
  The Mobian Phosh Experience mburns 1 1,416 11-18-2023, 08:21 AM
Last Post: crocspot
  Mobian Phosh Gnome Software Is Recommending A Broken Update. mburns 0 846 10-14-2023, 11:57 AM
Last Post: mburns
  Mobian .desktop file creation MadameMalady 15 5,539 07-27-2023, 04:12 PM
Last Post: MadameMalady
  The Phosh Web app vs Angelfish mburns 0 861 06-19-2023, 11:57 AM
Last Post: mburns
  Manjaro Phosh - Tiny Blue Indicator Light - Blinking ArchiMark 2 1,386 06-11-2023, 04:12 PM
Last Post: ArchiMark
  How do I tell Phosh that my app is mobile friendly? Barugon 5 2,545 06-05-2023, 09:24 PM
Last Post: Barugon
  Phosh Updating - Battery Charge Indicator - Jittery Settings - Display Usability ArchiMark 4 2,100 05-28-2023, 07:00 AM
Last Post: ArchiMark
  Megapixels (kernel 5.19) reports that a config file is missing. grump_fiddle_reinstall 2 2,387 11-30-2022, 07:44 AM
Last Post: mburns

Forum Jump:


Users browsing this thread: 1 Guest(s)