Description: Displays current song, artist, album cover and current/total song time Has previous, play/pause, stop and next button for controling Amarok player
I must admit that this screenlet isn't so much useful because of amarok shortcut keys(super+z x c v b)... but maybe someone needs it...
TODO: needs more look improving
if someone has idea to add new or improve it's funcionalities please let me know...
fell free to create and send me themes Last changelog:
1.9.2008. v0.3.3 changeg draw_text() function because of memory leak -------------------- 30.6.2008. added gnu public licence
20.4.2228. v0.3.2 added new themes (hope u like it) added some more settings -------------------- 17.4.2008. v0.3.1 fixed bug when amarok is off renamed file from AmarokControl to AmarokControlScreenlet (now screenlet manager recognize it) --------------- 16.4.2008. v0.3 added album cover added current/total song time replaced play and pause button with one play/pause edited theme --------------- 15.4.2008. v0.2 initial version
Sorry... I'm from Mexico, in my country I can't enter to the page...
Can you upload the file in other server please? (I.E. MediaFire or Rapidshare)
Or
Can you send me an E-Mail please with the file...
blinderi2eri2 [@] gmail.com
I can't get this to work. I download, open manager, install new screenlet, select it, add screenlet...nothing happens.
Terminal returns:
AttributeError: 'AmarokControlScreenlet' object has no attribute 'draw_scaled_image'
Any help?
Abi
could you please send me whole output of terminal... start screenlet using this command
python /path_to_screenlet/AmarokControlScreenlet.py
or maybe you need just to delete its config files... (try this first)
they are located in ~/.config/Screenlets
delete everything in this folder with name AmarokControl
I had the screenlet completely removed so there were no files there. It might be worth mentioning I am rubbing Hardy. I don't know if that might be affecting it.
--------
abi@Dennis:~$ python /home/abi/.screenlets/AmarokControl/AmarokControlScreenlet.py
Traceback (most recent call last):
File "/home/abi/.screenlets/AmarokControl/AmarokControlScreenlet.py", line 17, in <module>
import screenlets
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 36, in <module>
import rsvg
ImportError: /usr/lib/libgsf-1.so.114: undefined symbol: gSf_xml_out_add_int
Hope that helps. :)
Abz
scrap that one - something very odd was going on there. This is the actual output - sorry for the spam :S
--------------
abi@Dennis:~$ python /home/abi/.screenlets/AmarokControl/AmarokControlScreenlet.py
CachingBackend: Loading instances from cache
Found a running session of AmarokControl, adding new instance by service.
Error in screenlets.services.get_service_by_name: org.freedesktop.DBus.Error.ServiceUnknown: The name org.screenlets.AmarokControl was not provided by any .service files
Screenlet has already been added to /tmp/screenlets/screenlets.abi.running
Loading instances in: /home/abi/.config/Screenlets/AmarokControl/default/
No instance(s) found in session-path, creating new one.
UPDATING SHAPE
LOAD NEW THEME: default
FOUND: /home/abi/.screenlets/AmarokControl/themes/default
UPDATING SHAPE
/home/abi/.screenlets/AmarokControl/AmarokControlScreenlet.py:162: DeprecationWarning: integer argument expected, got float
p_layout.set_width(220 * self.scale*pango.SCALE)
Traceback (most recent call last):
File "/home/abi/.screenlets/AmarokControl/AmarokControlScreenlet.py", line 188, in <module>
screenlets.session.create_session(AmarokControlScreenlet)
File "/usr/lib/python2.5/site-packages/screenlets/session.py", line 466, in create_session
session.start()
File "/usr/lib/python2.5/site-packages/screenlets/session.py", line 242, in start
sl = self.screenlet(session=self, id=self.__get_next_id())
File "/home/abi/.screenlets/AmarokControl/AmarokControlScreenlet.py", line 57, in __init__
self.theme_name = "default"
File "/home/abi/.screenlets/AmarokControl/AmarokControlScreenlet.py", line 84, in __setattr__
screenlets.Screenlet.__setattr__(self, name, value)
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 688, in __setattr__
self.update_shape()
File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 1127, in update_shape
self.on_draw_shape(ctx)
File "/home/abi/.screenlets/AmarokControl/AmarokControlScreenlet.py", line 148, in on_draw_shape
self.on_draw(ctx)
File "/home/abi/.screenlets/AmarokControl/AmarokControlScreenlet.py", line 122, in on_draw
self.draw_scaled_image(ctx,self.album_x*self.scale,self.album_y*self.scale,cover,60*self.scale,60*self.scale)
AttributeError: 'AmarokControlScreenlet' object has no attribute 'draw_scaled_image'
Abi
Thanks for making this. This was the exact screenlet I needed.
I've been using "Now Playing" with Amarok, but I wanted something more simple, that does not display as much info. I use Sidebar, so there isn't much horizontal room for each screenlet.
This screenlet brings the necessary functions and gets the job done. Wishes? well, themes would be nice. :-D
1. The new version of the screenlet does not work. It does not run. The old one ran fine. The only thing is, the screenlet manager does not recognize it as a screenlet in either version. (installed by putting in ~/.screenlets)
2. When you get everything straitened out, it would be cool if you would allow custom sizes. I mean like if i want it to be width 300 and height 50. Technically this should work. I tried to edit the code, but i dont know python and i broke it ;), so i will leave it to you.
If these two things get straightened out, i can assure you i will use this screenlet :)
this with manager is fixed... screenlet should work, if not work delete it's config files from ~/.config/Screenlets
if still not work run it from terminal and paste terminal output here
happy birthay :)
if I make settings for screenlet size then I can't use background, glass and other images but I could make settings for text position and colors...
nice job just what i have always wanted nowplaying screenlets doesnt work seamlessly with amarok .. which is my default music player .. i would be looking forward to an update ..hopes it would include albumart
I don't like so much now playing... and it's much easier to make it from begining... so I made it just to practise python (because i am beginer in python) ;)
Ratings & Comments
25 Comments
Not good, this screenlet uses way too much CPU, occasionally it burst up to 40%
The server is down... Can you re-upload the file please?
link is ok... i tryed it just now and it works fine
Sorry... I'm from Mexico, in my country I can't enter to the page... Can you upload the file in other server please? (I.E. MediaFire or Rapidshare) Or Can you send me an E-Mail please with the file... blinderi2eri2 [@] gmail.com
I can't get this to work. I download, open manager, install new screenlet, select it, add screenlet...nothing happens. Terminal returns: AttributeError: 'AmarokControlScreenlet' object has no attribute 'draw_scaled_image' Any help? Abi
could you please send me whole output of terminal... start screenlet using this command python /path_to_screenlet/AmarokControlScreenlet.py or maybe you need just to delete its config files... (try this first) they are located in ~/.config/Screenlets delete everything in this folder with name AmarokControl
I had the screenlet completely removed so there were no files there. It might be worth mentioning I am rubbing Hardy. I don't know if that might be affecting it. -------- abi@Dennis:~$ python /home/abi/.screenlets/AmarokControl/AmarokControlScreenlet.py Traceback (most recent call last): File "/home/abi/.screenlets/AmarokControl/AmarokControlScreenlet.py", line 17, in <module> import screenlets File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 36, in <module> import rsvg ImportError: /usr/lib/libgsf-1.so.114: undefined symbol: gSf_xml_out_add_int Hope that helps. :) Abz
scrap that one - something very odd was going on there. This is the actual output - sorry for the spam :S -------------- abi@Dennis:~$ python /home/abi/.screenlets/AmarokControl/AmarokControlScreenlet.py CachingBackend: Loading instances from cache Found a running session of AmarokControl, adding new instance by service. Error in screenlets.services.get_service_by_name: org.freedesktop.DBus.Error.ServiceUnknown: The name org.screenlets.AmarokControl was not provided by any .service files Screenlet has already been added to /tmp/screenlets/screenlets.abi.running Loading instances in: /home/abi/.config/Screenlets/AmarokControl/default/ No instance(s) found in session-path, creating new one. UPDATING SHAPE LOAD NEW THEME: default FOUND: /home/abi/.screenlets/AmarokControl/themes/default UPDATING SHAPE /home/abi/.screenlets/AmarokControl/AmarokControlScreenlet.py:162: DeprecationWarning: integer argument expected, got float p_layout.set_width(220 * self.scale*pango.SCALE) Traceback (most recent call last): File "/home/abi/.screenlets/AmarokControl/AmarokControlScreenlet.py", line 188, in <module> screenlets.session.create_session(AmarokControlScreenlet) File "/usr/lib/python2.5/site-packages/screenlets/session.py", line 466, in create_session session.start() File "/usr/lib/python2.5/site-packages/screenlets/session.py", line 242, in start sl = self.screenlet(session=self, id=self.__get_next_id()) File "/home/abi/.screenlets/AmarokControl/AmarokControlScreenlet.py", line 57, in __init__ self.theme_name = "default" File "/home/abi/.screenlets/AmarokControl/AmarokControlScreenlet.py", line 84, in __setattr__ screenlets.Screenlet.__setattr__(self, name, value) File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 688, in __setattr__ self.update_shape() File "/usr/lib/python2.5/site-packages/screenlets/__init__.py", line 1127, in update_shape self.on_draw_shape(ctx) File "/home/abi/.screenlets/AmarokControl/AmarokControlScreenlet.py", line 148, in on_draw_shape self.on_draw(ctx) File "/home/abi/.screenlets/AmarokControl/AmarokControlScreenlet.py", line 122, in on_draw self.draw_scaled_image(ctx,self.album_x*self.scale,self.album_y*self.scale,cover,60*self.scale,60*self.scale) AttributeError: 'AmarokControlScreenlet' object has no attribute 'draw_scaled_image' Abi
do you have installed screenlets >= v0.1
u would never know how much little things like this mean to me and lots of pple.. all i can say is thanks
Thanks for making this. This was the exact screenlet I needed. I've been using "Now Playing" with Amarok, but I wanted something more simple, that does not display as much info. I use Sidebar, so there isn't much horizontal room for each screenlet. This screenlet brings the necessary functions and gets the job done. Wishes? well, themes would be nice. :-D
:) i'll add some new themes. i'm not so good artist but i'll make a effort ;)
it just worked ... thanks for the update
1. The new version of the screenlet does not work. It does not run. The old one ran fine. The only thing is, the screenlet manager does not recognize it as a screenlet in either version. (installed by putting in ~/.screenlets) 2. When you get everything straitened out, it would be cool if you would allow custom sizes. I mean like if i want it to be width 300 and height 50. Technically this should work. I tried to edit the code, but i dont know python and i broke it ;), so i will leave it to you. If these two things get straightened out, i can assure you i will use this screenlet :)
this with manager is fixed... screenlet should work, if not work delete it's config files from ~/.config/Screenlets if still not work run it from terminal and paste terminal output here
Installed great :) Please allow custom sizes for width and height, and custom text sizes. You do this, and you are my hero :D
happy birthay :) if I make settings for screenlet size then I can't use background, glass and other images but I could make settings for text position and colors...
Thanks :) Well, the update does make it nicer. To bad about resize, but that is ok :)
nice job just what i have always wanted nowplaying screenlets doesnt work seamlessly with amarok .. which is my default music player .. i would be looking forward to an update ..hopes it would include albumart
thanks :)... I'm working on it just now... changign design and adding new stuff... it will be done today or tomorow... :)
Why don't you build on the NowPlaying screenlet instead ? It's got an existing themeing support as well.
I don't like so much now playing... and it's much easier to make it from begining... so I made it just to practise python (because i am beginer in python) ;)
lol ok, no worries :)
but it would be much nicer if it showed the current album cover.
I'll add it in next version :)