Foobar2000 Customization Topic


Recommended Posts

Last time i checked it, was a pain in the ass to code :p

I coudlnt get anything done hah

It's seemed to have gotten easier or something. An explosion of configs using it have popped up.

Link to comment
Share on other sites

^Dude, that looks pretty sweet. But you know, I think you should add glass to the bottom instead of a background image. Glass is supported by the new foo_ui_panels component.

Thanks :)

Glass at the bottom?

You mean, like this :D

fooglassxg2.th.jpg

small glitches with the buttons though :) but well.... satisfied, for now.

Link to comment
Share on other sites

Could you post the code for that config Mr. Fuji? While I would change it a bit, I would love a starting point.

As already said... it's basically em3's layout....

It's really badly converted to ui_panels at the moment, but I'll post it anyway ;)

UI_Panels config:

// Background
$glass(0,0,0,58)

// Global
$panel(Playlist,Single Column Playlist,0,43,%_width%,$sub(%_height%,101),)
$panel(Buttons,Buttons,$sub($div(%_width%,2),110),$sub(%_height%,49),240,52,)

$puts(tracktitle,
	$if($meta_test(artist),%artist%,$substr(%_filename%,1,$sub($strstr(%_filename%, - ),1)))
	$if($or($meta_test(artist,title),$strstr(%_filename%, - )), - )
	$if($or($meta_test(title),$not($strstr(%_filename%, - ))),
	%title%,$substr(%_filename%,$add($strstr(%_filename%, - ),3),$len(%_filename%))))

$if(%album%,

	$puts(freespace,$sub(%_width%,38,$calcwidth($get(tracktitle)),$calcwidth(%album%)))
	$puts(space1,$sub($muldiv(%_width%,60,100),28,35))
	$puts(space2,$sub($muldiv(%_width%,40,100),8))

	$ifgreater($get(freespace),35,
		$puts(areaWidth1,$add($calcwidth($get(tracktitle)),$div($get(freespace),2)))
		$puts(areaWidth2,$add($calcwidth(%album%),$div($get(freespace),2)))
		,
		$ifgreater($calcwidth(%album%),$get(space2),
			$puts(areaWidth1,$get(space1))
			$puts(areaWidth2,$get(space2))
			,
			$puts(areaWidth1,$sub(%_width%,$calcwidth(%album%),28,35))
			$puts(areaWidth2,$add($calcwidth(%album%),8))
			)
		)

	,$puts(areaWidth1,$sub(%_width%,36))
	)

$puts(charWidth1,$div($calcwidth($get(tracktitle)),$len($get(tracktitle))))
$puts(charWidth2,$div($calcwidth(%album%),$len(%album%)))


// PerTrack
$if($and($stricmp(%_trackinfo_mode%,Follow Cursor),$stricmp(%_trackinfo_notrack%,1))
	,$imageabs(0,0,images\track_bg3.png,)
	,$if($and($stricmp(%_trackinfo_mode%,Now Playing),$stricmp(%_trackinfo_notrack%,1)),
		$imageabs(0,0,images\track_bg3.png,),
		$if(%isplaying%,$imageabs(0,0,images\track_bg1.png,),$imageabs(0,0,images\track_bg2.png,))
		)
	)

//$imageabs2(%_width%,3,0,0,0,0,0,$sub(%_height%,4),images\goldbar.png,nokeepaspect)
$button(5,5,0,0,17,18,,,Properties,)

$if($or(%isplaying%,$stricmp(%_trackinfo_mode%,Follow Cursor)),

	$puts(rating,$if2(%rating%,0))
	$button(26,20,0,0,13,17,images\rating$get(rating).png,images\rating1.png,Rate 1,)
	$button(26,20,13,0,13,17,images\rating$get(rating).png,images\rating2.png,Rate 2,)
	$button(26,20,26,0,13,17,images\rating$get(rating).png,images\rating3.png,Rate 3,)
	$button(26,20,39,0,13,17,images\rating$get(rating).png,images\rating4.png,Rate 4,)
	$button(26,20,52,0,13,17,images\rating$get(rating).png,images\rating5.png,Rate 5,)

	$padding(28,4)$align(left,top)
	$font(calibri,9,,0-77-153)

	$ifgreater($calcwidth($get(tracktitle)),$get(areaWidth1),
		$left($get(tracktitle),$sub($sub($len($get(tracktitle)),$div($sub($calcwidth($get(tracktitle)),$get(areaWidth1)),$get(charWidth1))),3))'...'
		,$get(tracktitle)
		)

	$padding(-20,0)$align(right,top)

	$if(%album%,
		$ifgreater($calcwidth(%album%),$get(areaWidth2),
			$left(%album%,$sub($sub($len(%album%),$div($sub($calcwidth(%album%),$get(areaWidth2)),$get(charWidth2))),3))'...'
			,%album%)
		)

	$alignabs($sub(%_width%,66),18,60,20,right,bottom)$font(calibri,8,,255-255-255)

	$div(%_filesize%,1048576).$num($div($mul($mod(%_filesize%,1048576),100),1048576),2) MB

	)


// PerSecond
$alignabs(110,18,160,20,left,bottom)$font(calibri,8,,255-255-255)

$if(%isplaying%,
	$if2($info(bitrate_dynamic),$info(bitrate)) KB/s [%samplerate%] Hz $caps([%__mp3_stereo_mode% ])$caps([%codec%])) $alignabs(280,20,60,18,center,bottom)$if(%isplaying%,$if(%play_count%,%play_count%x Played,Never Played),)

$imageabs2($ifgreater($muldiv($sub($muldiv(%_width%,81,80),4),%playback_time_seconds%,%length_seconds%),1,$muldiv($sub($muldiv(%_width%,81,80),4),%playback_time_seconds%,%length_seconds%),1),3,0,0,0,0,0,$sub(%_height%,52),images\goldbar.png,nokeepaspect)

Single Columns Playlist:

Group Display:

$imageabs2(%_width%,40,0,0,0,0,0,$sub(%_height%,40),images\vista_group.png,nokeepaspect alpha-180)
// PerTrack
$font(Segoe UI,9,bold glow-0-128-192 alpha-120,255-255-255)
$padding(10,4)
$align(left,top)
%artist%
$align(left,bottom)
%album%
$padding(0,0)
$align(right,top)
%date%
$align(right,bottom)
%genre%

Item Display:

$puts(tracktitle,
	$if($meta_test(artist),%artist%,$substr(%_filename%,1,$sub($strstr(%_filename%, - ),1)))
	$if($or($meta_test(artist,title),$strstr(%_filename%, - )), - )
	$if($or($meta_test(title),$not($strstr(%_filename%, - ))),
	%title%,$substr(%_filename%,$add($strstr(%_filename%, - ),3),$len(%_filename%))))

$puts(li,$calcwidth(%list_index%))
$puts(margins,$sub(%_width%,55,$add($get(li),16)))
$puts(charWidth,$div($calcwidth($get(tracktitle)),$len($get(tracktitle))))

$ifequal($mod(%_itemindex%,2),0,,$drawrect(0,0,0,0,pencolor-0-0-0 alpha-6))
$imageabs2($add($get(li),10),%_height%,0,0,0,0,0,0,images\li1.png,nokeepaspect)
$imageabs($add($get(li),9),0,images\li2.png,)

$if(%_selected%,
$imageabs(0,0,images\sel1.png,)
$imageabs2($add($get(li),9),%_height%,0,0,0,0,2,0,images\sel2.png,nokeepaspect)
$imageabs($add($get(li),9),0,images\sel3.png,)
$imageabs2(%_width%,%_height%,0,0,0,0,$add($get(li),11),0,images\sel4.png,nokeepaspect)
$imageabs($sub(%_width%,2),0,images\sel5.png,))

$padding(4,3)$align(left,top)
$if(%_selected%,$font(,,,0-77-153),$font(,,,0-0-0))
$if(%isplaying%,$imageabs($sub($div($add($get(li),11),2),6),4,images/playing.png,),%list_index%.)

$alignabs($add($get(li),16),3,%_width%,20,left,top)
$ifgreater($calcwidth($get(tracktitle)),$get(margins),
	$left($get(tracktitle),$sub($sub($len($get(tracktitle)),$div($sub($calcwidth($get(tracktitle)),$get(margins)),$get(charWidth))),3))'...'
	,$get(tracktitle))

$align(right,top)%length% 

$ifgreater($mul(%_height%,%_itemcount%),88,
$imageabs2(100,90,0,$sub($mul(%_height%,%_itemindex%),$add(%_height%,1)),,%_height%,$sub(%_width%,135),,images\ART_cd.png,)
$imageabs2(80,79,0,$sub($mul(%_height%,%_itemindex%),$add(%_height%,5)),,%_height%,$sub(%_width%,120),,$replace(%path%,%filename_ext%,cover.jpg),)
$imageabs2(100,90,0,$sub($mul(%_height%,%_itemindex%),$add(%_height%,1)),,%_height%,$sub(%_width%,135),,images\case.png,)
,)

Images and the button file:

images.zip

Link to comment
Share on other sites

@spex04, some question about your great iTunes foobar. :rofl:

itunesfoobywipry6.th.png

1. How can I get the names of the albums, here?

And if I have a lot's of albums, is there a way to get the name to each album?

Ex
:

artist / album

genre

2. How can I replace the total tracks by the year of each album?

Ex:
1998, 2005...

3. And finally, I deleted the rating system but the length of the tracks are "blocked" at this place. How I move them?

(4.) Oh, there are no covers in my Single Column. I cannot get them! How do I do that?

Yes, I know, it's specially for my case but, I can't do that alone.

Many thanks in advance, spex04!

Link to comment
Share on other sites

@spex04, some question about your great iTunes foobar. :rofl:

itunesfoobywipry6.th.png

1. How can I get the names of the albums, here?

And if I have a lot's of albums, is there a way to get the name to each album?

Ex
:

artist / album

genre

2. How can I replace the total tracks by the year of each album?

Ex:
1998, 2005...

3. And finally, I deleted the rating system but the length of the tracks are "blocked" at this place. How I move them?

(4.) Oh, there are no covers in my Single Column. I cannot get them! How do I do that?

Yes, I know, it's specially for my case but, I can't do that alone.

Many thanks in advance, spex04!

How did you arrange your music collection by track? Can you please give an insight on how you did it?

Scirwode

Link to comment
Share on other sites

How did you arrange your music collection by track? Can you please give an insight on how you did it?

Scirwode

You want to know how I did the Single Column? With "Single Column Playlist" DLL and the spex04's code. In "Group by" I put %album%.

I'm not sure that's what you want... :unsure:

Link to comment
Share on other sites

@apul

I think I can help,

1. You need to set the total tracks in your metadata. Just select all the tracks from the album and right click ->properties -> right click -> auto track number

2. Find %_itemcount% and replace it with %date%

3. Change the $alignabs code for the %playback_time_remaining%

4. Once you do #1 it will start displaying the album art

Link to comment
Share on other sites

Can someone help me with this simple question? How can I fix this, my library is in order by artist and album, but the tracks in the albums are all out of order, how can I fix this? ( still have no idea what the hell i'm doing with foobar :ninja: )

foobarqc3.th.png

and how can I customize the track info panel to show info such as bitrate, ect.. like I've seen in some screenshots

Edited by ViperAFK
Link to comment
Share on other sites

@ ViperAFK

1. When this happens to me, I go to my files and rename them "01 artist - track.ext" "02 artist - track.ext" and so forth in order. It fixes it but I bet someone knows a better way to do it.

2. %codec_profile% , %_bitrate% kbps

@slyph

1. Make sure the code for it is under // PerSecond

2. Try a smaller font size

3. Well there is a way by having it resize the image based on the number of tracks, but I only read and not actually used the code for that, and it was a while ago. Maybe someone will know it.

Link to comment
Share on other sites

Hi everyone :D

It's quite a basic problem I cannot get past for some reason :(

My layout is thus far at the moment:

arghts9.jpg

But I need the playlist to appear under the browser. My layout is:

layoutsofarry0.jpg

Only using foo_browser.dll and columns ui :)

Link to comment
Share on other sites

:p

@spex04, some question about your great iTunes foobar. :rofl:

itunesfoobywipry6.th.png

1. How can I get the names of the albums, here?

And if I have a lot's of albums, is there a way to get the name to each album?

Ex
:

artist / album

genre

2. How can I replace the total tracks by the year of each album?

Ex:
1998, 2005...

3. And finally, I deleted the rating system but the length of the tracks are "blocked" at this place. How I move them?

(4.) Oh, there are no covers in my Single Column. I cannot get them! How do I do that?

Yes, I know, it's specially for my case but, I can't do that alone.

Many thanks in advance, spex04!

Where can I get that config, please :p

Link to comment
Share on other sites

OMG im so confused, as a first time foobar user i can honestly say wtf with the skinning. Apul if you could somehow freeze or copy ur entire setup itd be greatly appreciated.

Link to comment
Share on other sites

Here's my foobar. Based on's bbmartini

Could some one help me with the reflection. I wanted to add the reflexion effect also to the cd case and the cd, not only the cover.

Here?s the scrip

$imageabs2(360,300,40,$sub($mul(%_height%,%_itemindex%),$add(%_height%,1)),,%_height%,,,C:\Program Files\foobar2000\components\cd.png,)
$imageabs2(360,300,,$sub($mul(%_height%,%_itemindex%),$add(%_height%,1)),,%_height%,,,C:\Program Files\foobar2000\components\cd_case\case.png,)
$imageabs2(225,220,,,,,31,38,$replace(%path%,%filename_ext%,folder.*),nokeepaspect)
$imageabs2(360,300,,,,,,,C:\Program Files\foobar2000\components\cd_case\gloss.png,alpha-160)


$imageabs2(300,230,0,0,0,0,-8,290,$replace(%path%,%filename_ext%,folder.jpg),ROTATEFLIP-6)

$imageabs2(0,0,0,0,0,0,0,290,/images\LE5\overlay3.png,)


$if(%_isplaying%,
$font(Calibri,18,bold glow-146-153-179 glowblur-10 glowalpha-220,22-22-31)
$alignabs(,335,280,200,center,)
%artist%

$font(Calibri,14,bold glow-146-153-179 glowblur-10 glowalpha-220,22-22-31)
$alignabs(,368,280,44,center,)
%title%
,
$font(Calibri,20,bold glow-146-153-179 glowblur-10 glowalpha-220,22-22-31)
$alignabs(,345,327,44,center,)
Not playing...
)

post-106812-1171714777_thumb.jpg

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.