Results 1 to 3 of 3

Thread: conky show updates

  1. #1

    Default conky show updates

    Hello,
    I'm playing around with my suse xfce built with studio and I have made a conky with a lots of parts from here and there.
    Can anyone confirm me, please if this part is correct to show the available updates:
    # |--UPDATES
    UPDATES ${alignr}${font HandelGotD:size=8}
    Available: ${alignr}${font HandelGotD:size=8}${color1}${execi 3600 zypper list-updates | wc -l | tail} ${color}${font HandelGotD:size=8}${color2}Packages${color}
    -----------------------------------------
    Thanks
    Suse it's the best!!

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,333
    Blog Entries
    15

    Default Re: conky show updates

    Hi
    Might be better to script it (place in /etc/cron.hourly) and pop the output to a temp file since root needs to refresh and just cat the file in conky;

    Code:
    #/bin/bash
    
    zypper ref
    myresult=`zypper list-updates |wc -l|bc -l`
    echo $myresult - 3|bc -l > /tmp/pkg_update_totals
    Then in conky, just use cat /tmp/pkg_update_totals for the result.
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  3. #3

    Default Re: conky show updates

    Thanks, it's getting great my suse xfce.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •