Problem viewing available pacman updates with conky

Hi. I'm having problems with showing available package updates in my conky layout. I tried to follow instructions from archwiki https://wiki.archlinux.org/index.php/Co … nformation but none of the scripts seemed to work correctly, but instead they always show 'System is up to date' even though 'pacman -Qu' shows multiple packages available for update.
Following https://bbs.archlinux.org/viewtopic.php?id=37284 my conky has (I changed 'python' -> 'python2' so script compiles):
${texeci 10800 python2 /home/laite/.config/awesome/conky/packages_python.py}
Actually, I just noticed that last post in that topic seems to have the same problem than me (https://bbs.archlinux.org/viewtopic.php … 74#p863474)
Does anybody know how to get this working or maybe some other way to show updates in conky? I already tried all the scripts from wiki with no luck.

Kooothor wrote:https://github.com/kooothor/Scripts/blo … n-conky.sh
just leavin' this here...
Thanks
If somebody wants to know, here is my (very slightly) edited bash script:
#!/bin/bash
_pacPackages=$(pacman -Qu | wc -l)
if [ $_pacPackages -eq 0 ];
then
echo "\${color #ffffff}Your system is up to date.";
elif [ $_pacPackages -eq 1 ];
then
echo "\${color #ffaa00}1 new package";
else
echo "\${color #ffaa00}$_pacPackages new packages";
fi
exit 0
and conky:
${execpi 7200 sh /home/laite/.config/awesome/conky/package.sh}
Also, I have script updating packages in cron/hourly:
#!/bin/sh
pacman -Sy

Similar Messages

  • Problem view TIFF multipage images with ECL Viewer 5.1.3

    Dear All,
    using the SAPGUI 710 and CV04N, I cannot view the same TIFF multipage image twice in ECL Viewer, the second time, the first time every thing is ok, but the second time the SAPGUI display the error : "File C:Docume1dupondLOCALS1TempZEP_0457895 cannot be created"
    To view again the TIFF mulitpage image, I need to kill the sapLogon.exe process and relaunch it again.
    It seams the TIFF image file is locked by the  the saplogon.exe process the first time and on the second time, SAP cannot rewrite the temporay TIFF image file. 
    Notes:
    - I use CV04N or CV03N to view the documents.
    - This problem doesn't happends with non multipage TIFF image.
    - Tested on more than 20 computers.
    - Computers are with Windows XP SP2 + SAP GUI 7.10 Compilation 2 + SP9 + SP12 +  - ECL Viewer 5.1.3 (integrated with Comp 2)
    How can I fix this problem ?
    Thank you for your help
    I think this is not the correct forum to post this king of problem, i create the same post on
    Expert Forums » Application Server » SAP GUI » [Problem view TIFF multipage images with ECL Viewer 5.1.3|;
    Edited by: Patrick Zufferey on May 5, 2009 11:41 PM

    Can you upgrade the ECL viewer to version 6.0 and check whether the same problem still exists? you can download from service.sap.com

  • Conky - Display available pacman updates

    This is a python script I found and modified to display package update info with conky.
    The original was written by Majkhii and Sabooky which I found here via the wiki entry for conky:
    https://bbs.archlinux.org/viewtopic.php?id=37284
    This one is much simpler than it's predecessor. It will simply display a list of package names and their sizes. I couldn't figure how to keep the rating system from the original which allowed for highlighting "important" packages. Anyway here it is. I'm pretty new to programming so if something doesn't seem to make sense, it's probably because it doesn't.
    #!/usr/bin/env python2
    ~/.conky/notify.py
    -Description: Python script for displaying archlinux updates.
    -Usage: create shell script with the contents:
    #!/bin/bash
    # ~/pacsync.sh
    # This syncs pacman and creates a file to store
    # info for each package. This is so the python
    # portion doesn't constantly use your network
    # connection every 20 seconds to get package info
    # when it refreshes itself. Better to have the
    # shell script update once every several minutes
    # and have python use that info instead. Don't
    # forget to make executeable with chmod +x
    destfile=~/.pacsync.info
    sudo pacman -Sy
    if [ -f $destfile ]
    then
    rm $destfile
    fi
    list=`pacman -Qu | cut -d ' ' -f 1`
    for x in $list
    do
    echo $x >> $destfile
    echo `pacman -Si $x | egrep -w 'Version|Download'` >> $destfile
    done
    -Create the following crontab with 'crontab -e'
    to have pacsync.sh run every 30 minutes:
    */30 * * * * /path/to/shellscript
    -Conky: Add the line '${texeci 20 python path/to/this/file.py}'
    where 20 is the update interval in seconds
    -Also, if part of the output is not showing in conky
    increase text_buffer_size value in conky config
    I use 'text_buffer_size 1024'
    Original authors: Michal Orlik <[email protected]>, sabooky <[email protected]>
    Original source: https://raw.github.com/Mihairu/config-files/master/scripts/pacman.py
    Edited/Mutilated by: jakhead <[email protected]>
    def pkglist():
    returns an alphabetized list of packages to be updated
    import subprocess
    p = subprocess.Popen(['pacman', '-Qu'],
    stdout=subprocess.PIPE,
    stderr=subprocess.STDOUT)
    pkgnames = []
    for i,v in enumerate(p.stdout):
    pkgnames.append(v.strip())
    return sorted(pkgnames)
    def pkginfo(packages):
    takes a list of package names generated by pkglist()
    and returns a list of dicts containing information
    for each
    import os, subprocess
    pkgs = []
    for package in packages:
    pkg = {}
    pkg['name'] = package.split()[0]
    # ---- ~/.pacsync will need to be changed below
    # ---- to reflect script location if elsewhere
    info = open(os.path.expanduser('~/.pacsync.info')).readlines()
    for i,line in enumerate(info):
    if pkg['name'] in line:
    pkg['ver'] = info[i+1].split()[2]
    pkg['dlSize'] = float(info[i+1].split()[6])/1024
    pkgs.append(pkg)
    return pkgs
    def total(pkgs):
    formats strings for each package
    and returns output ready for conky
    # width of final output
    width = 30
    # pkg template - this is how individual pkg info is displayed ('' = disabled)
    # valid keywords - %(name)s, %(dlSize).2f, %(ver)s
    pkgTemplate = "%(name)s %(ver)s"
    # summary template - this is the summary line at the end
    summaryTemplate = "%(numpkg)d %(pkgstring)s"
    # pkg right column template - individual pkg right column
    pkgrightcolTemplate = "%(dlSize).2f MB"
    # summary right column template - summay line right column
    summaryrightcolTemplate = "%(size).2f MB"
    # seperator before summary ('' = disabled)
    block = '-' * 12
    # up to date msg
    u2d = '-system up to date-'
    # brief - one line summary
    brief = False
    # number of packages to display, 0 = all
    num_of_pkgs = 0
    summary = {}
    summary['numpkg'] = len(pkgs)
    summary['size'] = sum([x['dlSize'] for x in pkgs])
    if summary['numpkg'] == 1:
    summary['pkgstring'] = 'package'
    else:
    summary['pkgstring'] = 'packages'
    lines = []
    for pkg in pkgs:
    pkgString = pkgTemplate % pkg
    sizeValueString = pkgrightcolTemplate % pkg
    if len(pkgString)+len(sizeValueString)>width-1:
    pkgString = pkgString[:width-len(sizeValueString)-4]+'...'
    line = pkgString.ljust(width - len(sizeValueString)) + sizeValueString
    if line.strip():
    lines.append(line)
    if summary['numpkg'] == 0:
    """this is to center u2d message """
    buffer = " " * ((width - len(u2d))/2)
    print buffer + u2d + buffer
    return
    if not brief:
    if num_of_pkgs:
    print '\n'.join(lines[:num_of_pkgs])
    else:
    print '\n'.join(lines)
    # if block:
    print block.rjust(width)
    overallString = summaryTemplate % summary
    overallMBString = summaryrightcolTemplate % summary
    if len(overallString)+len(overallMBString)>width-1:
    overallString = overallString[:width-len(overallMBString)-4]+'...'
    summaryline = overallString.ljust(width - len(overallMBString)) + overallMBString
    if summaryline:
    print summaryline
    if __name__ == '__main__':
    total(pkginfo(pkglist()))
    Installation:
    As the comments state, create a shell script with the following:
    #!/bin/bash
    # ~/pacsync.sh
    # This syncs pacman and creates a file to store
    # info for each package. This is so the python
    # portion doesn't constantly use your network
    # connection every 20 seconds to get package info
    # when it refreshes itself. Better to have the
    # shell script update once every several minutes
    # and have python use that info instead. Don't
    # forget to make executeable with chmod +x
    destfile=~/.pacsync.info
    sudo pacman -Sy
    if [ -f $destfile ]
    then
    rm $destfile
    fi
    list=`pacman -Qu | cut -d ' ' -f 1`
    for x in $list
    do
    echo $x >> $destfile
    echo `pacman -Si $x | egrep -w 'Version|Download'` >> $destfile
    done
    Make it executable:
    chmod +x /path/to/shellscript
    Then create the following crontab with 'crontab -e':
    */30 * * * * /path/to/shellscript
    This will cause pacman to check for updates every 30 minutes.
    Finally, place this line in your conky config:
    ${texeci 20 python path/to/notify.py}
    Where 20 is the update interval in seconds.
    Note: If conky doesn't display all of the output correctly, increase the text_buffer_size in your conky config. I use:
    text_buffer_size 1024
    Make sure to check out the basic settings like output width, format, or one line summary. All credit goes to Majkhii and Sabooky as they did all the heavy lifting and I merely butchered their work to suit my system.
    That's it. I've been running this for 3 days with no issues so far. Questions/comments/concerns welcome. I'll try to work on this if need be, but I may have conflicts with school as I'm currently a student.
    *EDIT* Fixed screenshots
    Last edited by jakhead (2012-09-16 04:48:54)

    1. No need for 'cut', we already have a pacman switch for that:
    $ pacman -Qu | cut -d ' ' -f 1
    wine
    wine_gecko
    $ pacman -Quq
    wine
    wine_gecko
    2. You can use 'expac' to get version, size etc.
    3. Doing 'pacman -Sy' is not necessarily a good idea. http://www.andreascarpino.it/blog/posts … s-part-ii/
    Last edited by karol (2012-09-16 13:24:03)

  • Problem viewing videos I recorded with the phone

    When trying to view videos I recorded with the phone, It gives me a message saying it is impossible to view this multimedia file format!
    It has been recorded with the phone and it can't watch it on the phone!? It doesn't recognize its own recording format
    Help please

    If the format is in 3GP you can view it with a player called VLC (http://www.videolan.org/vlc/), or can try a video conversion program to convert it into a format your computer can read. Once such program can be found here http://www.avs4you.com/AVS-Video-Converter.aspx
    If someone has been helpful please consider giving them kudos by clicking the star to the left of their post.
    Remember to resolve your thread by clicking Accepted Solution.

  • Problems Viewing .pdf Template Created with Adobe

    I created a .pdf template using Adobe LiveCycle Designer. After I upload this template, I can not view the report. Can I only create templates using the BI Publisher plugin for MS Word?

    That is hardly a solution, the whole purpose of upgrading to Adobe Reader X is to avoid potential threats.  There is obviously a problem with Adobe Reader X and veiwing certain documents that needs to be addressed and the way to address it should not reside with "Use Adobe 9 and Adobe 10 and pick whatever version works for your document"

  • Problems after flash player update with firefox

    I have problems with video streaming on firefox after the flash player updated to 11.7. The video plays but the audio suddenly stops while the video continues to play but will also  stop after a few seconds. Does anyone know what may cause this problem?

    Hello,
    Flash Player installs to the Windows directory that standard user accounts do not have access to, therefore, Admin access is required for installation.
    Maria

  • [solved] Perl script for pacman updates in Conky

    Hi
    I've been using this script in Perl Conky to check on updates. It works well.
    It's not mine - I got it here;
    http://bbs.archlinux.org/viewtopic.php?id=57291
    #!/usr/bin/perl
    ## script by Xyne
    ## http://bbs.archlinux.org/viewtopic.php?id=57291
    use strict;
    use warnings;
    my $n = (`pacman -Qu | wc -l`);
    chomp ($n);
    if ($n == 0)
    print "System up to date"
    elsif($n == 1)
    print "1 new package"
    else
    print "$n new packages (inc. IgnorePkg) "
    I have some packages listed in IgnorePkg in pacman.conf - is there a way to exclude them from the packages counted in $n?
    I thought something like this would help but I don't see how to take only part of a line from IgnorePkg
    http://www.perlfect.com/articles/perlfile.shtml
    Thanks for any help
    EDIT I added a --ignore clause to the pacman query. Seems to have worked. Sorry to waste your time.
    Last edited by Bazzaah (2012-07-04 09:25:46)

    bump...
    Edit: Finally figured it out. My router assigns IP adresses dynamically on each reboot. When my IP adress changed from 192.169.1.2 to 192.168.1.3 the hellaconk script got all confused. Ahh...
    Last edited by Perre (2009-03-12 18:59:40)

  • Problems viewing HDV .mov file with Intel MacBook

    I have a HD QuickTime file exported from FCP HD on G5 PowerPC. I cannot play this file on my intel macbook, I get a white screen.
    Any idea why?
    Thanks
    Brian

    You'll need to copy the Apple HDV Codec to your MacBook. Since it won't be Intel native (unless you get FCP 5.1) you'll have to force QuickTime Player to run in Rosetta; it should be a setting in the Get Info window for QT Player. You should then be able to view the video (though I haven't tested this myself).
    Hope this helps.

  • Problem viewing movies in netflix with 32 version

    when i got to view a movie, firefox wants to start in 32 bit mode.. i say okay but apparently it no longer reloads in 32 bit mode because it keeps asking me to restart in 32 bit mode. help!!

    You can use these steps to start Firefox in 32 bit mode:
    #Close Firefox
    #Start the Finder and open the Applications folder
    #Right click or control-click the Firefox.app icon
    #Select "Get Info"
    #Select or Deselect "Open in 32-bit mode"
    #Close the "Firefox Info" window # Restart Firefox

  • Problems viewing downloaded PDF files with Adobe Download Assist.

    How can I start using Adobe Down Load Assist, I need to view some forms in PDF format? & How can I change the way I view my forms?

    Are you trying to view PDF forms?  If so then you may want to use Adobe Reader.  You can find the download for Adobe Reader at http://get.adobe.com/reader/.

  • Pacman update failing (openjdk7 and rhino?)

    hi,
    I am getting the following error when doing pacman -Syu:
    :: Starting full system upgrade...
    resolving dependencies...
    warning: dependency cycle detected:
    warning: rhino will be installed before its jre7-openjdk-headless dependency
    looking for inter-conflicts...
    error: unresolvable package conflicts detected
    error: failed to prepare transaction (conflicting dependencies)
    :: openjdk6 and jre7-openjdk-headless are in conflict
    I had openjdk7 (+ headless) and rhino installed, but I uninstalled them all and installed openjdk6 (cos 7 is incompatible with a lot of programs I use).
    Does anyone have an idea how to get rid of this error? I don't even remember what rhino is or what I needed it for.
    thanks

    eclipse, maven3 for sure
    and maybe minecraft.
    first time I installed eclipse and maven3 I installed them with openjdk7. after removing opnejdk7 I uninstalled all of them and reinstalled them (with openjdk6). I have no problems besides the pacman update.
    Last edited by dynamo (2012-02-10 22:19:58)

  • MIGO not updating with excise value.

    Hey Guys,
    I am facing with this problem of MIGO not
    updating with excise value.
    When I am creating the MIGO doc, and after
    I give the excise invoice no. the excise
    values are not picking up. Its showing
    zero values.
    The following
    steps are being followed by me.
    ME21N - Create STO from plant to warehouse
    VL04 - Create outbound delivery
    VF01 - Create invoice
    J1IIN - Excise invoice
    MIGO - Goods receipt at warehouse
    Earlier it was working fine, but after
    we upgraded the system with patches and implemented
    Secondary higher education cess the
    problem arose.
    Please advise.
    Appreciate your help.
    Thanks,
    Zak

    Got answer from SAP..dunno what they did but it was rectified.

  • [Solved] errors with keys after pacman update?

    Hi,
    I installed pacman 4.0.1-4, but now this is what happens when I try and update.
    Proceed with installation? [Y/n] Y
    (28/28) checking package integrity [######################] 100%
    error: binutils-multilib: signature from "Jan Alexander Steffens (heftig) <[email protected]>" is unknown trust
    error: libcap-ng: signature from "Ionut Biru <[email protected]>" is unknown trust
    error: cifs-utils: signature from "Tobias Powalowski <[email protected]>" is unknown trust
    error: cmake: signature from "Dave Reisner <[email protected]>" is unknown trust
    error: colord: signature from "Ionut Biru <[email protected]>" is unknown trust
    error: lib32-glibc: signature from "Jan Alexander Steffens (heftig) <[email protected]>" is unknown trust
    error: lib32-gcc-libs: signature from "Jan Alexander Steffens (heftig) <[email protected]>" is unknown trust
    error: gcc-libs-multilib: signature from "Jan Alexander Steffens (heftig) <[email protected]>" is unknown trust
    error: gcc-multilib: signature from "Jan Alexander Steffens (heftig) <[email protected]>" is unknown trust
    error: perl: key "6D1655C14CE1C13E" is unknown
    error: key "6D1655C14CE1C13E" could not be looked up remotely
    error: openssl: signature from "Pierre Schmitz <[email protected]>" is unknown trust
    error: git: signature from "Dan McGee <[email protected]>" is unknown trust
    error: gpgme: signature from "Dave Reisner <[email protected]>" is unknown trust
    error: gvfs: signature from "Dave Reisner <[email protected]>" is unknown trust
    error: inetutils: key "FCF2CB179205AC90" is unknown
    :: Import PGP key 9205AC90, "Eric Belanger <[email protected]>", created 2011-04-19? [Y/n] Y
    error: key "Eric Belanger <[email protected]>" could not be imported
    error: intltool: key "FCF2CB179205AC90" is unknown
    :: Import PGP key 9205AC90, "Eric Belanger <[email protected]>", created 2011-04-19? [Y/n] ^C
    Interrupt signal received
    When pacman updated it suggested that I run this command,
    sudo pacman-key --init
    I know that usually I would say yes to a key and pacman should remember it, but what are all the errors?
    Last edited by mich04 (2012-01-20 17:19:26)

    # /etc/pacman.conf
    # See the pacman.conf(5) manpage for option and repository directives
    # GENERAL OPTIONS
    [options]
    # The following paths are commented out with their default values listed.
    # If you wish to use different paths, uncomment and update the paths.
    #RootDir = /
    #DBPath = /var/lib/pacman/
    #CacheDir = /var/cache/pacman/pkg/
    #LogFile = /var/log/pacman.log
    HoldPkg = pacman glibc
    # If upgrades are available for these packages they will be asked for first
    SyncFirst = pacman
    #XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
    #XferCommand = /usr/bin/curl -C - -f %u > %o
    #CleanMethod = KeepInstalled
    Architecture = auto
    # Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
    #IgnorePkg =
    #IgnoreGroup =
    #NoUpgrade =
    #NoExtract =
    # Misc options (all disabled by default)
    #UseSyslog
    #ShowSize
    #UseDelta
    #TotalDownload
    #CheckSpace
    # REPOSITORIES
    # - can be defined here or included from another file
    # - pacman will search repositories in the order defined here
    # - local/custom mirrors can be added here or in separate files
    # - repositories listed first will take precedence when packages
    # have identical names, regardless of version number
    # - URLs will have $repo replaced by the name of the current repo
    # - URLs will have $arch replaced by the name of the architecture
    # Repository entries are of the format:
    # [repo-name]
    # Server = ServerName
    # Include = IncludePath
    # The header [repo-name] is crucial - it must be present and
    # uncommented to enable the repo.
    # The testing repositories are disabled by default. To enable, uncomment the
    # repo name header and Include lines. You can add preferred servers immediately
    # after the header, and they will be used before the default mirrors.
    #[testing]
    #Include = /etc/pacman.d/mirrorlist
    [core]
    Include = /etc/pacman.d/mirrorlist
    [extra]
    Include = /etc/pacman.d/mirrorlist
    #[community-testing]
    #Include = /etc/pacman.d/mirrorlist
    [community]
    Include = /etc/pacman.d/mirrorlist
    # If you want to run 32 bit applications on your x86_64 system,
    # enable the multilib repositories as required here.
    #[multilib-testing]
    #Include = /etc/pacman.d/mirrorlist
    [multilib]
    Include = /etc/pacman.d/mirrorlist
    # An example of a custom package repository. See the pacman manpage for
    # tips on creating your own repositories.
    #[custom]
    #Server = file:///home/custompkgs
    Here it is.

  • Problems viewing videos and trailers after the lastest Flash Player update

    I have Windows 7 - 64 bit, I use Firefox 11 (latest version) and Chrome (latest version); however, since I have installed the latest Flash Player update, I cannot view any trailers or some videos.  Youtube works fine, but other sites dont (I just get a green screen).  Please can someone assist me?  I have tried the "Help" section for Flash Player and it hasn't been too helpful.
    Thanks in advance!
    Ok, I found the problem, my hardware acceleration was set to enabled, once I disabled it, I had no problems viewing any of my sights that used Flash.
    Message was edited by: BanzaiOrion

    You might want to update your driver, particularly if you have an NVidia GPU.  Here's a post where we describe this process and ask for additional details so we can resolve this for others.
    Video investigation with Flash Player 11.2.202.228

  • Keynote document saved in icloud not updating with data from Numbers? is icloud the problem

    keynote document saved in icloud not updating with data from Numbers? is icloud the problem.
    If both files are held locally on the computer it looks like there is no problem however if you try and do it though icloud (ie your docs are saved on icloud) you dont get the "source" oprion besides the graph etc. Is this a but or a broken function due to the new implementation of icloud.

    Hi sebnor31,
    This is Visual C# forum, but your question seems not related to Visual C# language itself. It most likely related to the bluetooth message transaction protocal or with the device itself.
    I'll move your question to [where is this forum for...] forum where the morderator may direct you to the correct forum.
    Thanks for your understanding.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for