
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
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 ;)
12 years ago
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
12 years ago
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
TheWizzard
12 years ago
Report
blinderi2eri2
12 years ago
Report
drxnele
12 years ago
Report
blinderi2eri2
12 years ago
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
Report
abz
12 years ago
Terminal returns:
AttributeError: 'AmarokControlScreenlet' object has no attribute 'draw_scaled_image'
Any help?
Abi
Report
drxnele
12 years ago
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
Report
abz
12 years ago
--------
[email protected]:~$ 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
Report
abz
12 years ago
--------------
[email protected]:~$ 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
Report
drxnele
12 years ago
Report
bigbrovar
12 years ago
Report
HedgeSlammer
12 years ago
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
Report
drxnele
12 years ago
i'll add some new themes. i'm not so good artist but i'll make a effort ;)
Report
bigbrovar
12 years ago
Report
MNICY
12 years ago
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 :)
Report
drxnele
12 years ago
if still not work run it from terminal and paste terminal output here
Report
MNICY
12 years ago
Please allow custom sizes for width and height, and custom text sizes.
You do this, and you are my hero :D
Report
drxnele
12 years ago
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...
Report
MNICY
12 years ago
Well, the update does make it nicer.
To bad about resize, but that is ok :)
Report
bigbrovar
12 years ago
Report
drxnele
12 years ago
Report
vrunner123
12 years ago
Report
drxnele
12 years ago
Report
vrunner123
12 years ago
Report
lonerocker
12 years ago
Report
drxnele
12 years ago
Report