-
 KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
--
-
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
--
-
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
--
-
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
--
-
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
--
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    LinuxDaily.com    Linux42.org    OpenSkillz.com   
 
Apps
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login


Sponsoring


-
- Content .- Fans (3) .- Knowledge Base  . 

AmarokScreenSaver

   0.5.0  

Amarok Script

Score 82%
AmarokScreenSaver
zoom


AmarokScreenSaver
zoom


AmarokScreenSaver
zoom


Link:  http://
Downloads:  3475
Submitted:  Sep 30 2006
Updated:  Jun 25 2008

Description:

AmarokScreenSaver

Displays information about the currently playing song as a screensaver

I often use my computer to play music when I am having visitors or when I am just not in front of the monitor. I wanted some way to still be able to see what song was playing. As my TV is connected to the computer I decided to make a screensaver that would do just this. (you don't need to even own a TV to use this script, but my TV is in my living room and my computer is not...)

This script creates an image based on the currently playing song in Amarok, then changes your screensaver to KSlideshow and tells it to display this particular image. It restores your original screensaver settings when you stop the script or exit Amarok.

The script has some basic settings configurable via a dialog:

Party / safe - mode:
The script can be configured to lock the screensaver, you will need your password to return to the desktop. This is great if you are having a party and don't want everybody to use the computer for surfing or changing track every other minute.

DPMS:
I use display power management to turn off my monitor after a given period of time. This did not work well with my idea. Therefore I created an option to turn off DPMS, and turning it back on when the script is exited or Amarok is shut down.

Rotate image placement:
To prevent damage to the screen the images can be placed at random position, or fixed.

Screen width:
Enter the width of your screen in pixels

Screen height:
Enter the height of your screen in pixels

Cover factor:
Size of the cover relative to the size of your screen (in percent).

Requirements:
- Amarok (duh...)
- KDE, not sure if it will work with anything else, at least KScreensaver and KSlideshow is needed
- ImageMagick
- PyQt (Only to configure the script, this can also be done manually by editing a textfile)




Changelog:

Version 0.5.0:
- Works with KDE4 (>= 4.0.5)
- Does not start the screensaver if computer is in use (KDE4 only)

Version 0.4.1:
- Restores your original screensaver settings when you stop or pause playback (as well as when you exit Amarok).

Version 0.4.0:
- More config options
- Added reflection
- xwininfo and bc no longer needed
- Settings not lost when you reconfigure
- Tracknumber not shown when there is none

Version 0.3.1:
- Fixed bug where screensaver did not find any images after being active for a while

Version 0.3:
- Takes care of Kopete status. No longer changes status on each trackchange.
- The screensaver stays active on trackchange. Amarok is no longer shown
- Changed the name from KoverSS to AmarokScreenSaver

Version 0.2.1:
- Regression fix, images have better quality again!

Version 0.2:
- Better configuredialog
- More screen-friendly. Creates more than one image with the text and cover art in different places.
- Various fixes and speed improvements

Version 0.1.2:
- Works even if user has no screensaver set (Thanks to David Hugas Germà)

Version 0.1.1:
- Cover image now has better quality

Version 0.1:
Here we go!




LicenseGPL
(AmarokScreenSaver-0.5.0)
Send to a friend
Subscribe
Other  Apps  from nebbus
Report inappropriate content



goto page: prev   1  2  3 

-

 No pictures found

 
 by wamwam on: Aug 5 2008
 
Score 50%

The script is not creating any pictures...
So on my screen it's only written no pictures found when the screensaver starts.
I've installed everything in the list.
I'm using gentoo with kde 3.5.9
I'd really like it to worked, can someone help me?
Anyway this script is a really good idea ^^


Reply to this

-

 Re: No pictures found

 
 by nebbus on: Aug 6 2008
 
Score 50%

Could you take a look in
/home/<username>/.kde/share/apps/amarok/scripts-data/AmarokScreenSaver/final
and see if there are any images there?

Also run these commands while Amarok is playing:
1. dcop amarok player artist
2. convert -size 60x60 gradient:none-black gradient: -channel A -fx v.R "gradient.png"
3. convert -quality 100 -resize 100x20%! "gradient.png" "shadow.png"
4. dcop kdesktop KScreensaverIface save
5. xset -q

Two of those commands should create images in your workdir.


Reply to this

-

 Re: Re: No pictures found

 
 by wamwam on: Aug 7 2008
 
Score 50%

There's no image created in the folder.

dcop amarok player artist
Marilyn Manson

convert -size 60x60 gradient:none-black gradient: -channel A -fx v.R "gradient.png"
convert: no encode delegate for this image format `gradient.png'.

So I guess my problem come from the image format. What could I do?

Thank you for your answer


Reply to this

-
.

 Re: Re: Re: No pictures found

 
 by wamwam on: Aug 7 2008
 
Score 50%

Ok, problem solve, I just add the png use flag in my make.conf.
So now it's working fine, thanks a lot, this script is really great, good job ;)


Reply to this

-

 Re: Re: Re: Re: No pictures found

 
 by nebbus on: Aug 7 2008
 
Score 50%

Well, great to hear that you like the script! A happy user is what keeps me developing this and it gives me a feeling of returning something to the world of open source.

And thanks for solving the problem!


#################################
Running Kubuntu and Ubuntu Server
#################################

Reply to this

-

 great feature...

 
 by bhing on: Dec 4 2008
 
Score 50%

Really great... I use it all the time. Would anyone know a way to show text like éÈèÈåÅäÄöÖíÍìÌ properly. It turns out like gibberish in the screensaver: $£&%¤|<=}[ and more...

But it looks perfect in Amarok without the screensaver. Seems like a UTF-8 vs. Win 8859-1 or something like it.


Reply to this

-
.

 Re: great feature...

 
 by nebbus on: Dec 4 2008
 
Score 50%

Strange!

I have songs with æøå in the names and ID3 tags as well (I live in Norway). They show up fine. How does Amarok show the names? Could you try to execute:

dcop amarok player title
dcop amarok player artist

when you are playing a song with this problem? Post the output here.


Reply to this

-

 Re: Re: great feature...

 
 by bhing on: Dec 5 2008
 
Score 50%

Thanx alot for the fast reply.

Amarok displays the names correctly with ALL the correct characters, regardless of language and letter type.

dcop amarok player title
dcop amarok player artist

Gives me exactly the same CORRECT output in terminal, as in Amarok.

I just inserted a Norwegian song to show you the difference. (Lousy song by the way ;) ) The top of the image is the print screen from the Amarok playlist, the bottom part is from the screen saver image final.png:

http://img78.imageshack.us/img78/2875/amarokandscreenij4.png

Any help is highly appreciated.
Again, thanx for a beautiful script.



Reply to this

-

 Re: Re: Re: great feature...

 
 by nebbus on: Dec 5 2008
 
Score 50%

Try this:
convert -size 500x120 xc:black track.png
artist="`dcop amarok player artist`"
album="`dcop amarok player album`"
mogrify -quality 100 -fill white -pointsize 20 -draw -draw "text 100,50 \"$artist\"" -draw "text 100,80 \"$album\"" track.png

It should create an image (track.png) in your working directory. Check if you have the same problem.

Then:
convert -size 500x120 xc:black track.png
artist="æøåÆØÅ"
album="æøåÆØÅ"
mogrify -quality 100 -fill white -pointsize 20 -draw -draw "text 100,50 \"$artist\"" -draw "text 100,80 \"$album\"" track.png

And see if the same problem is still there.

What version of KDe and Amarok are you using?


Reply to this

-

 Re: Re: Re: Re: great feature...

 
 by bhing on: Dec 5 2008
 
Score 50%

Quote:
Try this:
convert -size 500x120 xc:black track.png
artist="`dcop amarok player artist`"
album="`dcop amarok player album`"
mogrify -quality 100 -fill white -pointsize 20 -draw -draw "text 100,50 \"$artist\"" -draw "text 100,80 \"$album\"" track.png


track.png still displays the exact same problem with letters. (had to remove one "-draw" to display both artist and album in track.png ;) )

Quote:
Then:
convert -size 500x120 xc:black track.png
artist="æøåÆØÅ"
album="æøåÆØÅ"
mogrify -quality 100 -fill white -pointsize 20 -draw -draw "text 100,50 \"$artist\"" -draw "text 100,80 \"$album\"" track.png

And see if the same problem is still there.


Still the same problem, æøåÆØÅ turning out really crazy. So the problem does not seem to be with dcop...

Quote:
What version of KDe and Amarok are you using?


Kubuntu 8.04.1
KDE 3.5.10
QT 3.3.8b
Amarok 1.4.9.1

On a side note; I tried a similar script using a theme in Superkaramba and that displayed everything correctly using dcop.

Don't know if that helps at all, but thanks for staying with me...


Reply to this

-

 Re: Re: Re: Re: Re: great feature...

 
 by nebbus on: Dec 6 2008
 
Score 50%

Strange indeed!

I also use Kubuntu 8.04 and the same version of KDE and Amarok.

Could you give me a link to that Superkaramba theme?


#################################
Running Kubuntu and Ubuntu Server
#################################

Reply to this

-

 Re: Re: Re: Re: Re: Re: great feature...

 
 by bhing on: Dec 6 2008
 
Score 50%

Sure thing. It is not a Screen Saver but a system monitor: Sigma System Monitor

http://www.kde-look.org/content/show.php/Sigma+System+Monitor?content=80170

The Amarok part looks like this:

Quote:

# Track informations
#
text x=80 y=22 value="Artist :"
text x=115 y=22 sensor=program program="dcop amarok player artist" interval=1000
text x=80 y=34 value="Title :"
text x=115 y=34 sensor=program program="dcop amarok player title" interval=1000
text x=80 y=46 value="Time :"
text x=115 y=46 sensor=program program="dcop amarok player currentTime" interval=1000
text x=145 y=46 value="/"
text x=155 y=46 sensor=program program="dcop amarok player totalTime" interval=1000


And it turns out like this:
http://img134.imageshack.us/img134/1213/sigmaqx5.png

Looks like it does roughly the same settings as your script, although it doesn't turn text into an image. But I can't see how that would matter.

I tried running your script and Superkaramba, both separate, and at the same time to see if that was messing with something. No difference at all.

Any other suggestions will be very welcome.
Thanks again



-

 Re: Re: Re: Re: Re: great feature...

 
 by nebbus on: Dec 7 2008
 
Score 50%

Try this:
convert -size 500x120 xc:black track.png
mogrify -quality 100 -fill white -pointsize 20 -draw "text 100,50 \"${dcop amarok player artist}\"" -draw "text 100,80 \"${dcop amarok player album}\"" track.png


Reply to this

-

 Re: Re: Re: Re: Re: Re: great feature...

 
 by bhing on: Dec 8 2008
 
Score 50%

Sorry, doesn't seem to work.

The script 'AmarokScreenSaver' exited with error code: 1

AmarokScreenSaver/AmarokScreenSaver.sh: line 149: text 100,50 "${dcop amarok player artist}": bad substitution
call failed



-

 Re: Re: Re: Re: Re: Re: great feature...

 
 by nebbus on: Dec 8 2008
 
Score 50%

Try to just run those commands in a terminal and see how track.png turns out, and remember the \ before some of the ".


#################################
Running Kubuntu and Ubuntu Server
#################################


-

 Re: Re: Re: Re: Re: Re: great feature...

 
 by nebbus on: Dec 8 2008
 
Score 50%

Could you also post the output of

echo $LANG
and
locale


#################################
Running Kubuntu and Ubuntu Server
#################################


-

 Re: Re: Re: Re: Re: Re: great feature...

 
 by bhing on: Dec 8 2008
 
Score 50%

Quote:
Try to just run those commands in a terminal and see how track.png turns out, and remember the \ before some of the ".


Result:

~$ mogrify -quality 100 -fill white -pointsize 20 -draw "text 100,50 \"${dcop amarok player artist}\"" -draw "text 100,80 \"${dcop amarok player album}\"" track.png
bash: text 100,50 "${dcop amarok player artist}": bad substitution

The \ is there as far as I see it, and track.png is all empty black.

Quote:

Could you also post the output of

echo $LANG
and
locale


en_US.UTF-8

and

LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=



-

 Re: Re: Re: Re: Re: Re: great feature...

 
 by bhing on: Dec 8 2008
 
Score 50%

Sorry...

The actual input/output is supposed to be like this:

bla@bla-desktop:~$ convert -size 500x120 xc:black track.png
mogrify -quality 100 -fill white -pointsize 20 -draw "text 100,50 \"${dcop amarok player artist}\"" -draw "text 100,80 \"${dcop amarok player album}\"" track.png
bash: text 100,50 "${dcop amarok player artist}": bad substitution

still the same result.



-

 Re: Re: Re: Re: Re: Re: great feature...

 
 by nebbus on: Dec 11 2008
 
Score 50%

Sorry, I made an error there. It should be:

convert -size 500x120 xc:black track.png
mogrify -quality 100 -fill white -pointsize 20 -draw "text 100,80 \"$(dcop amarok player album)\"" track.png

while amarok is playing.

If it doesn't work I have no idea what is wrong. It might be the encoding of your filesystem (though I don't think so), or it might be imagemagick. Imagemagick might be using a font without support for these letters.

Sorry I could not help you any more :)



-

 Re: Re: Re: Re: Re: Re: great feature...

 
 by bhing on: Dec 11 2008
 
Score 50%

Well thank u again!

It most likely seems to be a font issue. The result:

convert -size 500x120 xc:black track.png
mogrify -quality 100 -fill white -pointsize 20 -draw "text 100,80 \"$(dcop amarok player album)\"" track.png

mogrify: unable to read font `/usr/local/lib/ImageMagick-6.4.3/config//usr/share/ghostscript/fonts/n019003l.pfb'.
mogrify: unable to read font `/usr/local/lib/ImageMagick-6.4.3/config//usr/share/ghostscript/fonts/n019003l.pfb'.

TWICE... for some reason. Now, I only need to change the font. Any input there? I'm not really good at this. Just putting in -font Blablabla doesn't seem to do it.

the file:
/usr/lib/ImageMagick-6.3.7/config/type-ghostscript.xml

tells me that n019003l.pfb is Helvetica, and that it is located here:
/usr/share/fonts/type1/gsfonts/n019003l.pfb
and not where it is looking.

I just found a bug report here:
https://bugs.launchpad.net/ubuntu/+source/imagemagick/+bug/69531

Do you know a way to change the font (or the search path of the script) without replacing type.xml

Looks like I'm headed in the right direction!

Again THANKS!



-

 Re: Re: Re: Re: Re: Re: great feature...

 
 by nebbus on: Dec 12 2008
 
Score 50%

You could try:
mogrify -list font
to see fonts that imagemagick tries to use,

then
convert -size 500x120 xc:black track.png
mogrify -quality 100 -fill white -pointsize 20 -font SomeFont.ttf -draw "text 100,80 \"$(dcop amarok player album)\"" track.png

Remember to replace SomeFont.ttf with your font name.

Also have a look here for more info on imagemagick and fonts:
http://imagemagick.org/script/command-line-options.php#font
Hope it helps!



-

 Re: Re: Re: Re: Re: Re: great feature...

 
 by bhing on: Dec 13 2008
 
Score 50%

Once again, many thanks for your reply.

The listing of fonts only gives you the names and not the path to them. I tried it earlier, but it didn't work.

But I got it to work now anyway, and it seems the bug I mentioned was the problem:

https://bugs.launchpad.net/ubuntu/+source/imagemagick/+bug/69531

type.xml points to type-ghostscript.xml which in turn points to the wrong search path for all fonts. The only thing I was left with, was a very basic default font. Looking through

/usr/lib/ImageMagick-6.3.7/config/type-ghostscript.xml

I found the correct paths to all fonts and used one of them like this:

convert -size 500x120 xc:black track.png

mogrify -quality 100 -fill white -pointsize 20 -font /usr/share/fonts/type1/gsfonts/n021003l.pfb -draw "text 100,80 \"$(dcop amarok player album)\"" track.png

I replaced line number 161 in AmarokScreenSaver.sh with the last part and everything works perfectly! I see every letter there is to see.

Again, magnificent script! I will continue to use it daily. And thanks a lot for helping out! Very much appreciated.





-

 Re: Re: Re: Re: Re: Re: great feature...

 
 by nebbus on: Dec 17 2008
 
Score 50%

Ahh, good to hear that it worked out for you! And thanks for posting the fix!

I don't think I should use absolute paths in the script, but this will help others having a similar problem.


#################################
Running Kubuntu and Ubuntu Server
#################################


goto page: prev   1  2  3 

Add commentBack






-
-
How do you like Plasma 5?
 The best KDE Desktop ever.
 Definitely a nice improvement.
 Not decided yet. Haven't tried it yet.
 I do not like some of the changes.
 KDE is taking the wrong way.
 I am still sticking with KDE 3.5.
 I have no opinion, but wanted to vote anyway.

resultmore
 
 
 Who we are
Contact
More about us
Frequently Asked Questions
Register
Twitter
Blog
Explore
Apps
Jobs
Knowledge
Events
People
Updates on identi.ca
Updates on Twitter
Facebook App
Content RSS   
Events RSS   

Participate
Groups
Forum
Add App
Public API
About KDE-Apps.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Advertising
Sponsor us
Report Abuse
 

Copyright 2003-2014 KDE-Apps.org Team  
All rights reserved. KDE-Apps.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.
KDE and K Desktop Environment are trademarks of KDE e.V.