10
Oct
08

Pidgin status v2

As requested by bleketux, I made some modifications to pidgin_status.py script.

Main news is that now it is possible to change Pidgin status message periodically. Script will go to background (it is a real daemon now :P), change the status, and wait for the set time interval until it changes the message again, and then all over again, wait-change-wait-change.

To change status message every 5 minutes with a random line from file /home/miljan/quotes/dusko_radovic.txt:

pidgin_status.py -d -t 5 -f /home/miljan/quote/dusko_radovic.txt

And in Pidgin you would get something like this every five minutes:

To show the song you are listening to as status message:

pidgin_status.py -s “Mukeka di Rato – Kustapassaaessedrmobral”

And in Pidgin it would look like:

You can see all possible options by running script with -h argument for help.

bleketux, I hope you are still around to enjoy this. ;)

Download: https://github.com/miljank/pidgin-status


6 Responses to “Pidgin status v2”


  1. 1 Paito Anderson Jul 5th, 2009 at 4:05 am

    I used you original pidgin_status.py here in mplayer to show the currently playing song.

    http://paitoanderson.com/post4.php

  2. 2 rEnr3n Feb 18th, 2010 at 11:57 pm

    Hi, I love your script but I get this error all the time, after a few minutes of starting it.

    File “pidgin_status_v2.py”, line 297, in
    set_status (purple)
    File “pidgin_status_v2.py”, line 272, in set_status
    msg = get_quote (opt.file)
    File “pidgin_status_v2.py”, line 244, in get_quote
    return quote
    UnboundLocalError: local variable ‘quote’ referenced before assignment

    Can you fix it? Or can you tell me how do I fix it? It’s very much appreciated. Thank you.

  3. 3 miljan Feb 19th, 2010 at 7:09 am

    Hi rEnr3n,

    Is there any chance that you can upload somewhere the quote file you are using with the script? I’m afraid it will be very hard to guess what’s going on without it.

  4. 4 rEnr3n Feb 24th, 2010 at 9:36 am

    Ok here is the file http://uploading.com/files/d56ba562/pidgin.txt/

    Here is the command I type in terminal:
    python pidgin_status_v2.py -d -t 10 -f /home/ren/Documents/Python/pidgin.txt

    Thank you for your time.

  5. 5 miljan Feb 24th, 2010 at 1:35 pm

    Hi rEnr3n,

    Please download new version of the script from https://www.miljan.org/download/pidgin_status_v2.5.py

    It should fix the problem you are experiencing plus some different bugs I found.

    Let me know how it goes.

    Enjoy,
    Miljan

  6. 6 rEnr3n Feb 25th, 2010 at 12:48 am

    After six hours of running the script, I haven’t seen any errors. It is working fine now, thanks. I’ll update you if I encounter future errors. :)

Comments are currently closed.