Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
Thread Tools Display Modes
Old June 27th, 2007   #1
Yuzem
Dipped in Ubuntu
 
Join Date: Oct 2006
Beans: 538
Ubuntu 7.10 Gutsy Gibbon
INTRODUCTION

This began as a tiny script and now I have a lot of ideas for it.
If you just want to know what is this about then take a look at the screen shots:

Thunar (CD theme):


This is Nautilus with some vinyls (I can only post 8 images):
http://img176.imageshack.us/my.php?i...llazo06kr3.jpg

The DVD theme is used by the imdb grabber (for firefox bookmarks) and the film grabber (for video files)
Nautilus with a custom background:


Nautilus again (picture avatars and photo theme) :


YouTube Avatars


tv-show grabber:


The music widget (support drag and drop):


mame Avatars in nautilus:


comic Avatars:
They can be bookmarked as shown on the screenshot:


DESCRIPTION

Avatar Factory is a bash script that creates shortcuts (Desktop Entry files) with eye candy icons that represent music albums, photo albums, DVD films, youtube videos, mame roms and more. When clicked the avatars can perform different actions as launching a video, start playing some music (compatible with many music players), open a folder, etc...
They can be viewed in Nautilus, Thunar or any application that support Desktop Entry files.

BEFORE INSTALL

I have to say that I don't have any previous knowledge about programing. I have learned most of what I know by doing this script. If something is implemented in an inconvenient way just tell me. I am really a beginner at this.

Check this post to see what a newbie I am:
http://ubuntuforums.org/showthread.php?t=460259

Thanks to the people there for helping me out with some very basic things.

INSTALLATION

You can install it from the deb or the rpm package
If you prefer to install it from the tar file follow the instructions in the README.
Download (gnomefiles)

USAGE

You can use the graphic interface (zenity) from the applications menu but it is much more powerful to use the command line.

From the command line:

For instructions type:
Code:
man avatar-factory
For grabbers specific instructions and description type:
Code:
avatar-factory -g grabber_name --help
To get a list of available grabbers:
Code:
avatar-factory -lg
Automatic cover download (for the music grabber)

You can check this posts about mass grabbing covers directly to the correct folders:
Album Cover Art Downloader
Sonata
exaile-cover-mover

Last edited by Yuzem; January 19th, 2009 at 08:26 AM..
Yuzem is offline   Reply With Quote
Old June 29th, 2007   #2
Bossieman
A Carafe of Ubuntu
 
Bossieman's Avatar
 
Join Date: Jun 2006
Location: Gothenburg
Beans: 142
Ubuntu Jaunty Jackalope (testing)
Send a message via ICQ to Bossieman Send a message via Yahoo to Bossieman Send a message via Skype™ to Bossieman
Re: Howto: Music album covers in Thunar Nautilus and everywhere!

Really nice work.
But there is some problems. The first one is that when I change the player to Amarok it wont play them. A error message in Amarok saying the file is not supported/readable or something like that.
Is there anyway you can make this script open upp the folder with the album when you dubbelklick the albums? That would be very sweet.
The skript crashed when I sat the path to my whole harddrive. Worked fine when I specified the folder with the music.
__________________
Ubuntu 7.10
Bossieman is offline   Reply With Quote
Old June 29th, 2007   #3
Yuzem
Dipped in Ubuntu
 
Join Date: Oct 2006
Beans: 538
Ubuntu 7.10 Gutsy Gibbon
Re: Howto: Music album covers in Thunar Nautilus and everywhere!

Yes, you can make it open up the folder, add to the following to the command:
Code:
--type 0
I don't know why it crashed. Right now the script does not detect if a folder has music inside. It will make an album for every folder with a jpg or a png picture inside.
It is better right now to point it to your music folder.
Yuzem is offline   Reply With Quote
Old June 29th, 2007   #4
edmondt
A Carafe of Ubuntu
 
Join Date: Jun 2005
Beans: 104
Re: Howto: Music album covers in Thunar Nautilus and everywhere!

That looks so cool!
__________________
Domain and Hosting: http://www.biztoe.net
Website Development: http://www.biztoe.com
edmondt is online now   Reply With Quote
Old June 29th, 2007   #5
Bossieman
A Carafe of Ubuntu
 
Bossieman's Avatar
 
Join Date: Jun 2006
Location: Gothenburg
Beans: 142
Ubuntu Jaunty Jackalope (testing)
Send a message via ICQ to Bossieman Send a message via Yahoo to Bossieman Send a message via Skype™ to Bossieman
Re: Howto: Music album covers in Thunar Nautilus and everywhere!

Quote:
Originally Posted by Yuzem View Post
Yes, you can make it open up the folder, add to the following to the command:
Code:
--type 0
I don't know why it crashed. Right now the script does not detect if a folder has music inside. It will make an album for every folder with a jpg or a png picture inside.
It is better right now to point it to your music folder.

Very nice, thank yoy! This is awsome!
__________________
Ubuntu 7.10
Bossieman is offline   Reply With Quote
Old June 29th, 2007   #6
MetalMusicAddict
Tall Cafè Ubuntu
 
MetalMusicAddict's Avatar
 
Join Date: Jan 2005
My beans are hidden!
Re: Howto: Music album covers in Thunar Nautilus and everywhere!

Ok so does this work recursively and does on work on any folder structure?

ie: /artist/album/image.jpg?
MetalMusicAddict is offline   Reply With Quote
Old June 29th, 2007   #7
MetalMusicAddict
Tall Cafè Ubuntu
 
MetalMusicAddict's Avatar
 
Join Date: Jan 2005
My beans are hidden!
Re: Howto: Music album covers in Thunar Nautilus and everywhere!

Ok. Looking into this further I know realize this does NOT make your folders for your music look like the covers contained inside. Kinda like XP can do with the image inside.

I wonder if there's a way to adapt this to do that?

Don't get me wrong. This is still cool. Just not what I was expecting.
MetalMusicAddict is offline   Reply With Quote
Old June 29th, 2007   #8
Yuzem
Dipped in Ubuntu
 
Join Date: Oct 2006
Beans: 538
Ubuntu 7.10 Gutsy Gibbon
Re: Howto: Music album covers in Thunar Nautilus and everywhere!

You can use the "--type 0" option to make it go inside the folder when you clic on the albums.

Last edited by Yuzem; June 29th, 2007 at 04:24 PM..
Yuzem is offline   Reply With Quote
Old June 29th, 2007   #9
schnupi
Just Give Me the Beans!
 
Join Date: Apr 2007
Location: Dublin
Beans: 66
Ubuntu 7.10 Gutsy Gibbon
Re: Howto: Music album covers in Thunar Nautilus and everywhere!

love it! really good thanks! my avatar-launcher was in /usr/local/bin btw

pity exaile doesnt work with it but im really impressed with the whole thing

Last edited by schnupi; June 29th, 2007 at 05:08 PM..
schnupi is offline   Reply With Quote
Old June 29th, 2007   #10
Yuzem
Dipped in Ubuntu
 
Join Date: Oct 2006
Beans: 538
Ubuntu 7.10 Gutsy Gibbon
Re: Howto: Music album covers in Thunar Nautilus and everywhere!

There is a new version:
Now it should work with exaile and it should be easier to configure amarok and M.O.C.

You must set them in the configuration file:
Code:
gedit ~/.avatar-factory/avatar-launcher
For moc:
(this will clear the current playlist)
Code:
music=mocp
For exaile:
Code:
music=exaile
For amarok:
(this will clear the current playlist)
Code:
music=amarok

Last edited by Yuzem; June 29th, 2007 at 08:02 PM..
Yuzem is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:44 PM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry