Page 18 of 20 FirstFirst ... 81617181920 LastLast
Results 171 to 180 of 195

Thread: Conky Pidgin Python Script

  1. #171
    Join Date
    Feb 2008
    Location
    52°38'41.6"N/1°19'43.6"E
    Beans
    Hidden!

    Re: Conky Pidgin Python Script

    Quote Originally Posted by achmonth View Post
    Wow, this is really sweet! I love it.
    A million and fifty-seven thanks
    Glad to be of service

    I'll rollout a new package at some point soon, is it working okay for you as is?

  2. #172
    Join Date
    Dec 2008
    Location
    Trondheim, Norway
    Beans
    15
    Distro
    Ubuntu

    Re: Conky Pidgin Python Script

    I'ts working as it's supposed to, yes. I'm wondering though - would you be able to add an option only showing the active accounts and not the inactive ones?

    I'd like an option showing something like

    Code:
    username@irc.freenode.net (IRC)
    username@googlemail.com/ (XMPP)
    username (Yahoo)
    instead of

    Code:
    username@hotmail.com (MSN) - Disabled
    username@irc.freenode.net (IRC) - Enabled
    username@googlemail.com/ (XMPP) - Enabled
    username (Yahoo) - Enabled
    Or is this already possible via the template file?

    (Btw - what did you do to make sure the example accounts didn't show as links?)
    Last edited by achmonth; December 1st, 2010 at 03:32 PM.

  3. #173
    Join Date
    Feb 2008
    Location
    52°38'41.6"N/1°19'43.6"E
    Beans
    Hidden!

    Re: Conky Pidgin Python Script

    New version attached, replace as before

    I reused the options for buddy listing filtering:
    Code:
      -o, --onlineonly      Only show online buddies. If outputting account
                            listings this option limits it to enabled only.
      -a, --availableonly   Only show available buddies. If outputting account
                            listings this option limits it to enabled only.
      -f, --offlineonly     Only show offline buddies. If outputting account
                            listings this option limits it to disabled only.
    As for the emails not linking I have no idea, I just pasted the text straight into code tags

    I also optimised the logic somewhat, no if the -L option is added it should be a lot faster as it wont go through all the buddy info grabbing process too
    Attached Files Attached Files

  4. #174
    Join Date
    Dec 2008
    Location
    Trondheim, Norway
    Beans
    15
    Distro
    Ubuntu

    Re: Conky Pidgin Python Script

    That did it
    This is all what I dared hope for. I kneel down and kiss the ground before you.
    Thanks once more

  5. #175
    Join Date
    Feb 2008
    Location
    52°38'41.6"N/1°19'43.6"E
    Beans
    Hidden!

    Re: Conky Pidgin Python Script

    UPDATE

    Updates as follows:
    • Added an --accountlisting / -L option to switch from buddy listings to your own account listings with status and protocol. This supports the template option also, see help for more info.


    Package changes can be seen here: https://launchpad.net/~conkyhardcore...source.changes

    The apt packages should be available soon

  6. #176
    Join Date
    Feb 2008
    Location
    52°38'41.6"N/1°19'43.6"E
    Beans
    Hidden!

    Re: Conky Pidgin Python Script

    IMPORTANT NEWS

    All the script packages have now been copied into the Conky Companions PPA. Any package updates will be provided by the team through this new ppa. The ppa can be found here: https://launchpad.net/~conky-companions/+archive/ppa. To use this ppa first delete the old ppa files using this:

    Code:
    sudo rm /etc/apt/sources.list.d/m-buck* && sudo rm /etc/apt/sources.list.d/conkyhardcore*
    Then follow the modified first post instructions for the scripts

    Script updates will only be published through this new ppa going forwards

  7. #177
    Join Date
    Feb 2010
    Beans
    Hidden!

    Re: Conky Pidgin Python Script

    Last edited by Sector11; April 8th, 2011 at 11:54 PM.

  8. #178
    Join Date
    Apr 2010
    Location
    Santo Andre - Brazil
    Beans
    18
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Conky Pidgin Python Script

    Man, I have to say this XD You're a lifesaver, really.

    Thanks for the great Plugin, are you still thinking about updating it? It seems to do everything someone could ask for already, just out of curiosity.

    I was thinking, dunno if I can do it via template or using -W -A and stuff but... Can you order your contacts by the group they belong to?

    I managed to sort via Status by adding -A v -W w -U x, but no groups (maybe some ifs on the template, but I don't know how yet)

    I'm not good with Python (really should learn a bit of it), I started to actually use Linux only a few months ago, but I can try to be of some help to make the group sorting possible. Let me know if you have anything.

    Thanks again =D

  9. #179
    Join Date
    Feb 2008
    Location
    52°38'41.6"N/1°19'43.6"E
    Beans
    Hidden!

    Re: Conky Pidgin Python Script

    No sorting by groups is there, should be fairly straight forward to do...maybe change the --sortbylogactivity to a --sort="LOGACTIVITY" / --sort="NAME" / --sort="GROUP" with NAME being the default

    I am not sure when I can find the time though....if I get bored over the long weekend I'll take a look...

  10. #180
    Join Date
    Apr 2010
    Location
    Santo Andre - Brazil
    Beans
    18
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Conky Pidgin Python Script

    I see, I took a look at the code, kind of got how it work... What adds the -s option is line 84, isn't it?
    Code:
    self.parser.add_option("-s", "--sortbylogactivity", dest="sortbylogactivity",
    default=False, action="store_true",
    help=u"If used the list is sorted by most recent activity 
    first, this is useful when limiting the list size with the limit option")
    If it is, I noticed it redirects to line 371 that starts this:

    Code:
    if self.options.sortbylogactivity == True:
                    pidginDataList.sort(key=lambda obj: obj.activitydatetime,reverse=True)
                else:
                    pidginDataList.sort()
    
                return pidginAccountDataList, pidginDataList
    I'll see if I can get any further, I know some logic, but none Python coding XD

    Take your time with the code, I'll let you know if I get anything.

    Thanks for the quick reply =] See you o/

Page 18 of 20 FirstFirst ... 81617181920 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

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