Announcement

Collapse
No announcement yet.

Yet Another Conky Thread

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Don B. Cilly
    replied
    uname -ri is brilliant, didn't know, thanks

    The way I understand it though - and I may be wrong but it looks like it - is, exec keeps executing at every cicle (1 sec by my update_interval), execi at defined intervals.
    So I put 100 minutes as if to say, don't bother. ;·)

    Leave a comment:


  • kubicle
    replied
    Originally posted by Don B. Cilly View Post
    I'll check it out... even though, those command are ${execi 6000}... they execute every 6000 seconds...
    Umm, why do you need to update it all...it's never going to change at runtime?
    You could do a simple "${exec uname -ri}"

    Leave a comment:


  • Don B. Cilly
    replied
    Thanks
    I'll check it out... even though, those command are ${execi 6000}... they execute every 6000 seconds...

    Thing is, I had a "disagreeable" surprise this morning.
    I wrote the uptime thingy with an uptime of over one hour. At reboot, it was under 1 hour, and the string numbers changed.
    So I had to find my way through an if/then/else maze until I found a way around that.
    And I couldn't find a way to do it with the conky $loadavg... not with the labels and colours.
    This seems to work:

    Code:
    ${font ubuntu:bold:size=8}Kernel:  ${alignr}${color 607f96}${execi 6000 inxi -c 0 -Sx | awk '/System:/ {print substr($5,1,8),$6}'}${color}
    ${voffset -2}Distro:               ${alignr}${color 607f96}${execi 6000 lsb_release -d | awk '/Description:/ {print $2,$3,$4}'}${color}
    ${voffset -2}${alignr}Up: ${color 607f96}${uptime}${color}
    ${voffset -15}KDE:  ${color 607f96}${execi 6000 inxi -c 0 -Sx | awk '/Desktop:/ {print $4,$5,$6}'}${color}
    ${if_match "$uptime" >="1"}${voffset -2}Load avg.:  (1m) ${voffset 1}${color 607f96}${exec uptime | awk '/average/ {print $8"         ",$9,"          "$10}'}${color}${else}${if_match "$uptime" <="1"}${voffset -2}Load avg.:  (1m) ${voffset 1}${color 607f96}${exec uptime | awk '/average/ {print $9"         ",$10,"          "$11}'}${color}${endif}${endif}
    ${voffset -15}${offset 115}(5m)${offset 28}(15m)

    Leave a comment:


  • chimak111
    replied
    Originally posted by Don B. Cilly View Post
    So I did
    I had to cram the system info into even less space, being too lazy to move the grids and Lua linengraphs, but for the moment, I quite like it :·)
    Total noob at conky & awk here, so thanks for the substr trick with awk!

    My question is about the use of inxi. I think you can do without it.
    This is just a mock conky:
    Code:
    conky.text = [[
    ${exec uname -a | awk '{ print substr($3,1,9)" "$12 }'}
    ${exec kf5-config --version | awk '/Qt/ { print $2}'}
    ]]
    If you compare
    time uname -a | awk '{ print substr($3,1,9)" "$12 }'
    and
    time inxi -Sx | awk '/System/ { print substr($5,1,9)" "$6 }'
    you'll notice that the first is considerably quicker. (Your exact values in inxi and awk could be different. I'm using inxi 3.0.37-00 (2019-11-19)). On my system, both output 4.15.0-70 x86_64

    BTW, I think that "-c 0" is the default now and isn't needed in the version I use.

    More on inxi & conky here: https://forums.bunsenlabs.org/viewtopic.php?id=5551

    Leave a comment:


  • Don B. Cilly
    replied
    Originally posted by Don B. Cilly View Post
    One thing I liked in yours is Load. I'll add that.
    So I did
    I had to cram the system info into even less space, being too lazy to move the grids and Lua linengraphs, but for the moment, I quite like it :·)

    Click image for larger version

Name:	load.png
Views:	1
Size:	62.3 KB
ID:	644458

    [EDIT] The code is quite a bit of a juggling (offset/voffest) exercise, actually, :·) so if anyone is interested:

    Code:
    ${font ubuntu:bold:size=8}Kernel:  ${alignr}${color 607f96}${execi 6000 inxi -c 0 -Sx | awk '/System:/ {print substr($5,1,8),$6}'}${color}
    ${voffset -2}Distro:               ${alignr}${color 607f96}${execi 6000 lsb_release -d | awk '/Description:/ {print $2,$3,$4}'}${color}
    ${voffset -2}${alignr}Up: ${color 607f96}${uptime}${color}
    ${voffset -15}KDE:  ${color 607f96}${execi 6000 inxi -c 0 -Sx | awk '/Desktop:/ {print $4,$5,$6}'}${color}
    ${voffset -2}Load avg.:  (1m) ${voffset 1}${color 607f96}${exec uptime | awk '/user/ {print $8"         ",$9,"          "$10}'}${color}
    ${voffset -15}${offset 115}(5m)${offset 28}(15m)
    ${voffset -6}$stippled_hr${voffset 78}
    Last edited by Don B. Cilly; Dec 12, 2019, 02:55 PM.

    Leave a comment:


  • woodsmoke
    replied
    vinny
    you ARE a good man!
    woody

    Leave a comment:


  • vinnywright
    replied
    ok hears my .conkyrc , FYI trying to attach it as an attachment I some how triggered some forum security thingy and got blocked for a day until it got resolved .

    Code:
    conky.config = {
    
    -- comments now start this way instead of with a #  :)
    -- all config items require a trailing comma
    -- all string variables are enclosed in single quotes
    -- numbers and boolean operators don't get single quotes but yes = true and no = false now
    -- i'm not sure whether minimum_size = '220 5', is a string or not - if it doesn't work try without single quotes.
    
    background = false,
    use_xft = true,
    font = 'Ubuntu Mono:size=9',
    update_interval = 3.0,
    total_run_times = 0,
    own_window = true,
    own_window_type = 'dock',
    own_window_argb_visual = true,
    own_window_transparent = true,
    own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
    double_buffer = true,
    -- minimum_size = '220 5',
    maximum_width = 220,
    draw_shades = false,
    draw_outline = false,
    draw_borders = false,
    draw_graph_borders = true,
    default_color = 'gray',
    -- default_shade_color = 'black',
    alignment = 'top_right',
    gap_x = 12,
    gap_y = 35,
    cpu_avg_samples = 2,
    override_utf8_locale = true,
    uppercase = true, 
    -- set to yes if you want all text to be in uppercase
    -- display LDVS-0
    }
    
    -- text goes here. no changes to text format except opening and closing commands.
    
    conky.text = [[
    
    ${color gray}SYSTEM ${hr 1}${color}
    
    Hostname: $alignr$nodename
    Kernel: $alignr$kernel
    Release: $alignr${execi 300 lsb_release -rs | awk '{print $1}'}
    Codename: $alignr${execi 300 lsb_release -cs | awk '{print $1}'}
    Desktop: ${alignr}KDE ${execi 300 kf5-config -v | grep KDE | awk '{print $3}'}
    Uptime: $alignr$uptime
    
    ${color 00af00}NVidia${color} ${execi 300 nvidia-settings -q gpus | grep '0] (' | cut -d '(' -f 2,2 | sed -e 's/.\{1\}$//'}
    GPU Temperature : ${execi 2 nvidia-settings -q gpucoretemp | grep -m 1 Attribute | awk '{print $4}' | sed -e 's/\.//'}°C
    
    CPU: ${execi 300 cat /proc/cpuinfo | grep -m1   name | cut -c 14-54 | fmt -w 25 -g 25}
    Avgerage: ${execi 8 sensors | grep -A 0 'temp1' | cut -c14-19 | sed '/^$/d'}°C $alignr${execi 8 sensors -f | grep -A 0 'temp1' | cut -c14-19 | sed '/^$/d'}°F
    Core 1  : ${execi 8 sensors | grep -A 0 'Core 0' | cut -c14-19 | sed '/^$/d'}°C $alignr${execi 8 sensors -f | grep -A 0 'Core 0' | cut -c14-19 | sed '/^$/d'}°F
    #Core 2  : ${execi 8 sensors | grep -A 0 'Core 1' | cut -c14-19 | sed '/^$/d'}°C $alignr${execi 8 sensors -f | grep -A 0 'Core 1' | cut -c14-19 | sed '/^$/d'}°F
    #Core 3  : ${execi 8 sensors | grep -A 0 'Core 2' | cut -c14-19 | sed '/^$/d'}°C $alignr${execi 8 sensors -f | grep -A 0 'Core 2' | cut -c14-19 | sed '/^$/d'}°F
    #Core 4  : ${execi 8 sensors | grep -A 0 'Core 3' | cut -c14-19 | sed '/^$/d'}°C $alignr${execi 8 sensors -f | grep -A 0 'Core 3' | cut -c14-19 | sed '/^$/d'}°F
    Processes: ${alignr}$processes ($running_processes running)
    Load: ${alignr}$loadavg
    
    CPU: ${alignr}${freq} MHz
    ${cpugraph cpu0 20,120 37c013 c02313 -tl}
    #CPU1 ${alignr}${cpu cpu1}%
    #${color 00af00}${cpubar 4 cpu1}${color}
    #CPU2 ${alignr}${cpu cpu2}%
    #${color 00af00}${cpubar 4 cpu2}${color}
    #CPU3 ${alignr}${cpu cpu3}%
    #${color 00af00}${cpubar 4 cpu3}${color}
    #CPU4 ${alignr}${cpu cpu4}%
    #${color 00af00}${cpubar 4 cpu4}${color}
    
    Ram ${alignr}$mem / $memmax ($memperc%)
    ${color 00af00}${membar 4}${color}
    swap ${alignr}$swap / $swapmax ($swapperc%)
    ${color 00af00}${swapbar 4}${color}
    
    Highest CPU $alignr CPU% MEM%
    ${color E40016}${top name 1}$alignr${top cpu 1}${top mem 1}${color}
    ${color d2d00a}${top name 2}$alignr${top cpu 2}${top mem 2}${color}
    ${color 0538ab}${top name 3}$alignr${top cpu 3}${top mem 3}${color}
    
    Highest MEM $alignr CPU% MEM%
    ${color E40016}${top_mem name 1}$alignr${top_mem cpu 1}${top_mem mem 1}${color}
    ${color d2d00a}${top_mem name 2}$alignr${top_mem cpu 2}${top_mem mem 2}${color}
    ${color 0538ab}${top_mem name 3}$alignr${top_mem cpu 3}${top_mem mem 3}${color}
    
    ${color gray}Filesystem ${hr 1}${color}
    Root: ${alignr}${fs_free /} / ${fs_size /} 
    ${color 00af00}${fs_bar 4 /}${color}
    Disk: ${alignr}${fs_free /mnt/btrfs} / ${fs_size /mnt/btrfs}
    ${color 00af00}${fs_bar 4 /mnt/btrfs}${color}
    
    ${color gray}NETWORK ${hr 1}${color}
    Down ${downspeed wlp4s0} k/s ${alignr}Up ${upspeed wlp4s0} k/s
    ${downspeedgraph wlp4s0 25,107 0000ff 00ff00 scale -t -l}${alignr}${upspeedgraph wlp4s0 25,107 d0c40c 6b0853}
    Total ${totaldown wlp4s0} ${alignr}Total ${totalup wlp4s0}
    
    ${image /home/vinny/Downloads/conkyrc3.png -p 50,780 -s 125x125}
    ${image /home/vinny/Downloads/banner1.png -p 0,910 -s 234x30}
    
    ]]
    OK then ,,,,,,,,,,

    VINNY

    Leave a comment:


  • woodsmoke
    replied
    Hi Vinny
    I see a normal Conky, black background, lots of data and the funny little green dragon logo , green trim, Linux at the bottom with a blue...dunno...starburst ? background in the box.

    woodsmoke

    Leave a comment:


  • SpecialEd
    replied
    Originally posted by vinnywright View Post
    can we see this one



    ?

    VINNY
    Yes Sir.

    Leave a comment:


  • vinnywright
    replied
    can we see this one



    ?

    VINNY

    Leave a comment:


  • SpecialEd
    replied
    Originally posted by vinnywright View Post
    A question for any and all reading this .
    do you see my pick of conky in post #2 or is it just gobeldy gook like @Don B. Cilly has said he see's ?

    @woodsmoke an answer to this will get you my .conkyrc , I assume you wanted it as @Don B. Cilly has a link in post#1 for his

    VINNY
    I can't see it either Vinny.

    Leave a comment:


  • Don B. Cilly
    replied
    Well, mine is transparent too :·)
    You might notice little white and blue dots scattered about. They're stars.

    The image in post #2 looks like this:
    Click image for larger version

Name:	Screenshot_1120_084639.png
Views:	1
Size:	380 Bytes
ID:	644392

    If I use the URL to see it, it asks me to log in to ze google account. Probably yours...
    The attachment you posted in #4 is perfectly visible. Well, it's a local attachment... ;·)

    The conkyrc for mine - along with two lua scripts, instructions for setting up, and starter bash script - are in the KDE store link.

    I like mine better :·) (but then you probably like yours better, so we're even...)
    One thing I liked in yours is Load. I'll add that.

    Leave a comment:


  • woodsmoke
    replied
    Hi
    yes I see everything but your "this is mine" Vinny, it has a "minus sign" or "dash" in a circle in a vertical gray bar. it is not clickable but i can view it with right click.

    and yeah the .rc is what I was referencing. sorry.
    woodsmoke

    Leave a comment:


  • vinnywright
    replied
    A question for any and all reading this .
    do you see my pick of conky in post #2 or is it just gobeldy gook like @Don B. Cilly has said he see's ?

    @woodsmoke an answer to this will get you my .conkyrc , I assume you wanted it as @Don B. Cilly has a link in post#1 for his

    VINNY

    Leave a comment:


  • woodsmoke
    replied
    Hi
    I would pick a nit with the title...there is, to me, NO way that there can be "too many" Conky threads! The old woodsmoker LOVES conky!

    and, if possible, how about posting your script for the conky?
    woodsmoke

    Leave a comment:

Working...
X