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
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
Any way to get rid of the "unrated" text?
EDIT: nvm, I figured it out, in conkyRhythmbox.py I replaced
with:Code:output = "Unrated"
Code:output = ""
Last edited by TerminusEst; November 20th, 2008 at 08:41 AM.
Good idea
Also if anyone is interested, this is how my rhythmbox section looks like :
in .conkyrc:
will require "BulletBalls" and "PizzaDude Bullets" fontsCode:${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}
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:
find the section of code like this:Code:gksudo gedit /usr/share/conkyrhythmbox/conkyRhythmbox.py
and change it to this:Code:def writeOutput(self): if self.options.template != None:
If that works, great, if not I'll need to do some more digging.Code:def writeOutput(self): output = u"" if self.options.template != None:
Also, what is the title, artist and album that is being played?
Chimo
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
Bookmarks