Page 8 of 58 FirstFirst ... 67891018 ... LastLast
Results 71 to 80 of 572

Thread: Conky Rhythmbox Python Script

  1. #71
    Join Date
    Jan 2008
    Beans
    150
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Conky Rhythmbox Python Script

    Quote Originally Posted by kaivalagi View Post
    I am sure you meant {execpi...} or {execp...}
    true, it was early and i shouldve been paying attention in class
    Intel Pentium IV Northwood@2.4 GHz, 1 GiB RAM, 22" Samsung Monitor Ubuntu 9.04 Jaunty Jackalope
    AMD Turion 64 X2 Mobile technology @2.2GHz, 2 GiB RAM, 320 GiB HDD Windows 7 Ultimate RC1

    please remember to thank those that helped you

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

    Re: Conky Rhythmbox Python Script

    UPDATE

    Updated the script as follows:

    • Now loading the template file in unicode mode to allow for the extended character set
    • Added datatypes: ST (status), GE (genre), YR (year), TN (track number), FN (file name)
    • Added --statustext option to allow overridding of the standard status text
    • Updated README


    The first post is updated and the apt package will be available shortly

  3. #73
    Join Date
    Jan 2008
    Beans
    10

    Re: Conky Rhythmbox Python Script

    Any way to get rid of the "unrated" text?

    EDIT: nvm, I figured it out, in conkyRhythmbox.py I replaced
    Code:
    output = "Unrated"
    with:
    Code:
    output = ""
    Last edited by TerminusEst; November 20th, 2008 at 08:41 AM.

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

    Re: Conky Rhythmbox Python Script

    Quote Originally Posted by TerminusEst View Post
    Any way to get rid of the "unrated" text?

    EDIT: nvm, I figured it out, in conkyRhythmbox.py I replaced
    Code:
    output = "Unrated"
    with:
    Code:
    output = ""
    It makes sense to have nothing I guess, I'll make the change it for the next release

  5. #75
    Join Date
    Jan 2008
    Beans
    10

    Re: Conky Rhythmbox Python Script

    Quote Originally Posted by kaivalagi View Post
    It makes sense to have nothing I guess, I'll make the change it for the next release
    Good idea
    Also if anyone is interested, this is how my rhythmbox section looks like :



    in .conkyrc:
    Code:
    ${voffset 4}${font BulletBalls AOE:size=16}Z${font}  ${font Arial Bold:size=9}${voffset -5}${exec ~/.scripts/conkyrhythmbox-2.03/conkyRhythmbox --datatype=TI}${font}
    ${voffset 4}Artist: ${exec ~/.scripts/conkyrhythmbox-2.03/conkyRhythmbox --datatype=AR}  ${alignr}${exec ~/.scripts/conkyrhythmbox-2.03/conkyRhythmbox --datatype=PT}/${exec ~/.scripts/conkyrhythmbox-2.03/conkyRhythmbox --datatype=LE}
    ${voffset 2}${execibar 1 ~/.scripts/conkyrhythmbox-2.03/conkyRhythmbox --datatype=PP}
    ${voffset 2}${font PizzaDude Bullets:size=10}BBBBB${font}${offset -60}${font PizzaDude Bullets:size=10}${exec ~/.scripts/conkyrhythmbox-2.03/conkyRhythmbox --datatype=RT --ratingchar=D}${font}
    will require "BulletBalls" and "PizzaDude Bullets" fonts

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

    Re: Conky Rhythmbox Python Script

    Quote Originally Posted by TerminusEst View Post
    Good idea
    Also if anyone is interested, this is how my rhythmbox section looks like :



    in .conkyrc:
    Code:
    ${voffset 4}${font BulletBalls AOE:size=16}Z${font}  ${font Arial Bold:size=9}${voffset -5}${exec ~/.scripts/conkyrhythmbox-2.03/conkyRhythmbox --datatype=TI}${font}
    ${voffset 4}Artist: ${exec ~/.scripts/conkyrhythmbox-2.03/conkyRhythmbox --datatype=AR}  ${alignr}${exec ~/.scripts/conkyrhythmbox-2.03/conkyRhythmbox --datatype=PT}/${exec ~/.scripts/conkyrhythmbox-2.03/conkyRhythmbox --datatype=LE}
    ${voffset 2}${execibar 1 ~/.scripts/conkyrhythmbox-2.03/conkyRhythmbox --datatype=PP}
    ${voffset 2}${font PizzaDude Bullets:size=10}BBBBB${font}${offset -60}${font PizzaDude Bullets:size=10}${exec ~/.scripts/conkyrhythmbox-2.03/conkyRhythmbox --datatype=RT --ratingchar=D}${font}
    will require "BulletBalls" and "PizzaDude Bullets" fonts
    Very nice!

  7. #77
    Join Date
    Jun 2007
    Beans
    1

    Exclamation Re: Conky Rhythmbox Python Script

    There seems to be an error with your script when trying to print non-ascii characters.

    The following is being output on the command line:

    Traceback (most recent call last):
    File "/usr/share/conkyrhythmbox/conkyRhythmbox.py", line 466, in <module>
    main()
    File "/usr/share/conkyrhythmbox/conkyRhythmbox.py", line 463, in main
    rhythmboxinfo.writeOutput()
    File "/usr/share/conkyrhythmbox/conkyRhythmbox.py", line 416, in writeOutput
    print output.encode("utf-8")
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 5: ordinal not in range(128 )


    In conky, nothing is output

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

    Re: Conky Rhythmbox Python Script

    Quote Originally Posted by cedeel View Post
    There seems to be an error with your script when trying to print non-ascii characters.

    The following is being output on the command line:

    Traceback (most recent call last):
    File "/usr/share/conkyrhythmbox/conkyRhythmbox.py", line 466, in <module>
    main()
    File "/usr/share/conkyrhythmbox/conkyRhythmbox.py", line 463, in main
    rhythmboxinfo.writeOutput()
    File "/usr/share/conkyrhythmbox/conkyRhythmbox.py", line 416, in writeOutput
    print output.encode("utf-8")
    UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 5: ordinal not in range(128 )


    In conky, nothing is output
    I can't reproduce the problem, if you don't mind could you try editing the script you have as follows?

    assuming you installed using apt/deb package, edit the file:

    Code:
    gksudo gedit /usr/share/conkyrhythmbox/conkyRhythmbox.py
    find the section of code like this:

    Code:
        def writeOutput(self):
    		
            if self.options.template != None:
    and change it to this:

    Code:
        def writeOutput(self):
    
    		output = u""
    		
            if self.options.template != None:
    If that works, great, if not I'll need to do some more digging.

    Also, what is the title, artist and album that is being played?

    Chimo

  9. #79
    Join Date
    Nov 2007
    Location
    USA-ish
    Beans
    206
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Conky Rhythmbox Python Script

    kaivalagi, is there any chance of adding a lyrics option anytime in the future? I just noticed that (probably because I enabled the lyrics plugin on rhythmbox) I have lyrics for all my music in ~/.lyrics/artist/songname.lyric

    Someone over in the general conky thread made a lyrics script for Amarok, but Amarok takes forever to launch on my machine, and I also don't want to lose what I already have with your rhythmbox script.
    Desktop: Quantal on Core2 Duo E8500/Asus P5Q
    Laptop: Precise on S76 Pangolin

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

    Re: Conky Rhythmbox Python Script

    Quote Originally Posted by Cammy View Post
    kaivalagi, is there any chance of adding a lyrics option anytime in the future? I just noticed that (probably because I enabled the lyrics plugin on rhythmbox) I have lyrics for all my music in ~/.lyrics/artist/songname.lyric

    Someone over in the general conky thread made a lyrics script for Amarok, but Amarok takes forever to launch on my machine, and I also don't want to lose what I already have with your rhythmbox script.
    In theory I can do this at some point, shouldn't be a problem.

    However I am very busy with another project so any new functionality on my existing scripts is on hold at present...

    I'll add it to my TODO's...

Page 8 of 58 FirstFirst ... 67891018 ... 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
  •