Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - VastOne

61
squentin -

I took that code and made a couple of tweaks to the nowplaying_screenlet2... I put the Title/Album/Artist up top and then added menu items..


[nowplaying_screenlet2]
Type=D
DefaultFont=8
Window = size=240x240,transparent=1
VBmain= Title(xalign=.5) Artist(xalign=.5) Album(xalign=.5) _Cover(forceratio=1,hover_delay=1,hover_layout=nowplaying_screenlet2_popup) TimeBar

[nowplaying_screenlet2_popup]
Window = transparent=1
HBmain= 7Prev 7Play 7Next 7BMSettings
BMSettings = (icon=gtk-preferences,size=menu) MainMenuItem PSortItem SMLibrary LayoutItem QueueItem PFilterItem SeparatorMenuItem01 MenuItem14(command=OpenPref,label=_"Settings",icon="gtk-preferences") MenuItem05(command=Quit,label=_"Quit",icon="gtk-quit")
SMLibrary = (label=_"Library") MenuItem00(command="RunPerlCode(::ChooseAddPath(0,1))",label=_"Add Music",icon="gtk-add") MenuItem32(command="RunPerlCode(::IdleScan)",label=_"Rescan Collection",icon="gtk-refresh")

[nowplaying_screenlet3]
Type=D
DefaultFont=8
Window = size=240x240,transparent=1
VBmain= HBbuttons _Cover(forceratio=1) TimeBar Title(xalign=.5) Artist(xalign=.5) Album(xalign=.5)
HBbuttons = Prev Stop Play Next

[nowplaying_screenlet4]
Type=D
DefaultFont=8
Window = size=240x240,transparent=1
VBmain= ABbuttons _Cover(forceratio=1) TimeBar Title(xalign=.5) Artist(xalign=.5) Album(xalign=.5)
ABbuttons= (xalign=.5,xscale=0) HBbuttons
HBbuttons = Prev Stop Play -Next


Thanks for posting this as it gave me a bunch of new ideas..

62
Questions / Re: Pb with Gnome Shell
January 08, 2012, 00:11:08
Can't stand it either but I do have a partition with it loaded if anyone needs testing help, just offering
63
For anyone who wants it, here is the finished product



vastone-thin4.layout


[VastOne Thin Layout IV]
Type=D
Author=VastOne

Window =  transparent=1
HBTime = 6Filler1 Length(markup="$length",initsize="XX:XX",xalign=0) _TimeSlider(direct_mode=1) PlayingTime(markup="%s",initsize="XX:XX",xalign=1)
HBButtons = 7Prev(size=small-toolbar) 7Play(size=small-toolbar) 7Next(size=small-toolbar) 7VolumeIcon HBSettings
HBTitle = LockSong _Title
HBArtist = LockArtist _Artist
HBSettings = ExtraButtons(size=menu) BMSettings
BMSettings = (icon=gtk-preferences,size=menu) MainMenuItem PSortItem SMLibrary LayoutItem QueueItem PFilterItem SeparatorMenuItem01 MenuItem14(command=OpenPref,label=_"Settings",icon="gtk-preferences") MenuItem05(command=Quit,label=_"Quit",icon="gtk-quit")
SMLibrary = (label=_"Library") MenuItem00(command="RunPerlCode(::ChooseAddPath(0,1))",label=_"Add Music",icon="gtk-add") MenuItem32(command="RunPerlCode(::IdleScan)",label=_"Rescan Collection",icon="gtk-refresh")
HBAlbum = LockAlbum _Album
VBText = HBArtist HBAlbum HBTitle
VBmain = _VBText -HBTime HBButtons
VBleft = _VBText HBButtons
HBtop = _VBleft Filler1 -Cover(forceratio=1,maxsize=0)
VBmain = _HBtop HBTime
VolumeScroll = VolumeIcon


And here is another version of it with a different setup



vastone-thin3.layout


[VastOne Thin Layout III]
Type=D
Author=VastOne

Window =  transparent=1
HBButtons    = 7Prev(size=small-toolbar) 7Play(size=small-toolbar) 7Next(size=small-toolbar) 7VolumeIcon HBSettings
HBTitle        = LockSong _Title
HBArtist    = LockArtist _Artist
HBSettings    = ExtraButtons(size=menu) BMSettings
BMSettings    = (icon=gtk-preferences,size=menu) MainMenuItem PSortItem SMLibrary LayoutItem QueueItem PFilterItem SeparatorMenuItem01 MenuItem14(command=OpenPref,label=_"Settings",icon="gtk-preferences") MenuItem05(command=Quit,label=_"Quit",icon="gtk-quit")
SMLibrary    = (label=_"Library") MenuItem00(command="RunPerlCode(::ChooseAddPath(0,1))",label=_"Add Music",icon="gtk-add") MenuItem32(command="RunPerlCode(::IdleScan)",label=_"Rescan Collection",icon="gtk-refresh")
HBAlbum        = LockAlbum _Album
VBText        = HBArtist HBAlbum HBButtons
# VBmain        = _VBText
VBleft        = _VBText HBButtons
HBtop        = _VBleft Filler1 -Cover(forceratio=1,maxsize=0)
HBTime        = 6Filler1 Length(markup="$length",initsize="XX:XX",xalign=0) _TimeSlider(direct_mode=1) PlayingTime(markup="%s",initsize="XX:XX",xalign=1)
VBmain        = _HBTitle  _HBtop HBTime
VolumeScroll    = VolumeIcon


Thanks again squentin!
64
Thanks squentin..

That was perfect and obvious... I missed it badly!  :-[

Happy New Year
65
Is it possible to create a new line outside of a container..  In the image you see the time bar and where it is placed..

I would like to have it underneath the entire layout expanded across below.  I have tried several options but cannot seem to move just that line below the entire field



Here is the code

[VastOne Thin Layout]
Type=D
Author=VastOne

Window =  transparent=1
HBTime = Length(markup="$length",initsize="XX:XX",xalign=0) _TimeSlider(direct_mode=1) -PlayingTime(markup="%s",initsize="XX:XX",xalign=1)
HBButtons = 7Prev(size=small-toolbar) 45Filler2 Play(size=small-toolbar) -Next(size=small-toolbar)
HBTitle = LockSong _Title
HBArtist = LockArtist _Artist -HBSettings
HBSettings = ExtraButtons(size=menu) BMSettings
BMSettings = (icon=gtk-preferences,size=menu) MainMenuItem PSortItem SMLibrary LayoutItem QueueItem PFilterItem SeparatorMenuItem01 MenuItem14(command=OpenPref,label=_"Settings",icon="gtk-preferences") MenuItem05(command=Quit,label=_"Quit",icon="gtk-quit")
SMLibrary = (label=_"Library") MenuItem00(command="RunPerlCode(::ChooseAddPath(0,1))",label=_"Add Music",icon="gtk-add") MenuItem32(command="RunPerlCode(::IdleScan)",label=_"Rescan Collection",icon="gtk-refresh")
HBAlbum = LockAlbum _Album -VolumeIcon
VBText = HBTitle HBArtist HBAlbum
VBmain = _VBText -HBTime HBButtons
HBmain = _VBmain Filler1 -Cover(forceratio=1,maxsize=0)
# VBBottom = HBTime
VolumeScroll = VolumeIcon

66
Hi squentin

I do have PlayItem in my main layout and it does work perfectly from there

All I was saying about my g+/main layout is that if I have LayoutItem in the main layout file, it will not work if it is also in the type D that runs at the same time.  It can only be either/or.  I had to take LayoutItem out of the my main player.layout in order to use it as a menu item in the Type D I use all the time..

So it appears that the Type D recognizes what is in the main player.layout

Sorry that I am not explaining this better

Thank You Quentin for the explanations and help
67
I am trying to wrap my head around something I was discussing on the IRC with squentin.  I wanted to post here so that more can see it and because it is a lot easier to get all this information on the forum

I use this as a type D Desktop Widget .. everything works great..

[vastone-desktop II]
Type= D
Window = transparent=1
DefaultFontColor= white
VBmain= HBtitle HBartist HBalbum Cover(minsize=300,maxsize=300,xalign=.5) TimeBar -HBButtons -HBTime
HBalbum= Album(markup="$album")
HBartist= Artist(markup="$artist")
HBtitle= Title(markup="$title_or_file")
HBButtons =  Prev Play Next 1Filler1 -HBSettings -VolumeIcon
HBSettings = ExtraButtons(size=menu) BMSettings
BMSettings = (icon=gtk-preferences,size=menu) MainMenuItem PSortItem SMLibrary LayoutItem QueueItem PFilterItem SeparatorMenuItem01 MenuItem14(command=OpenPref,label=_"Settings",icon="gtk-preferences") MenuItem05(command=Quit,label=_"Quit",icon="gtk-quit")
SMLibrary = (label=_"Library") MenuItem00(command="RunPerlCode(::ChooseAddPath(0,1))",label=_"Add Music",icon="gtk-add") MenuItem32(command="RunPerlCode(::IdleScan)",label=_"Rescan Collection",icon="gtk-refresh")
HBTime = Length(markup="$length",initsize="XX:XX",xalign=0) -PlayingTime(markup="%s",initsize="XX:XX",xalign=1)
VolumeScroll = HBButtons


But I want to add a PlayItem to the menu that does the same thing as in my layout for the main player..  squentin has told me that PlayItem must be in a menu container (it is) and be associated with a SongTree/SongList which in this Type D (it is not)

Here is the the question..  Can you associate with the players already defined SongTree/SongList in a pseudo method or like a symlink would?

I ask this because if you have a LayoutItem defined in a MBMenu on the main player type g+ layout, it will not display in a Type D that is running at the same time.. So it is reading from the main player layout in some method ... If I remove LayoutItem from MBMenu on the main players type g+ layout, it then works fine in the above

Can you do the same with Type D to read what is already there in the players type g+ layout? Only the existing SongTree/SongList

I want to be able to read and use information from SongTree/SongList without actually having one in this Type=D

Or the correct way of using SongTree/SongList in a Type D

Thanks
68
Questions / Re: Stupid questions
December 26, 2011, 01:20:43
Ahh ... layouts are so subjective..  ;D

Here is a link to all I have collected and created

Get this file and extract it to

/home/your user name/.config/gmusicbrowser/layouts

Once you have done this and restart GMB, you will have a mass amount of new layouts to choose from as well as new widget layouts

Merry Christmas all
69
Customization / Re: Conky and GMB
December 19, 2011, 18:09:15
One thing of note I saw in the How-to file

There is no need to install mpdris unless you are using mpd as your music app

mpdris is a python script that simply creates a org.mpris.mpd dbus session for mpd use only
70
Questions / Re: album covers
December 19, 2011, 16:57:38
There was a recent change in the Google API that caused this. 

It has been corrected by squentin in the git version that I use
71
Customization / Re: Conky and GMB
December 19, 2011, 16:50:53
Awesome!!

I will add this to the original scripts on the #! forum

Well done..

http://crunchbanglinux.org/forums/post/172464/#p172464
72
Quote from: daniel227 on December 05, 2011, 22:01:16
@vastOne,
what do you mean by "named" image?

about versions - i have added this:
http://gmusicbrowser.org/deb ./
to the repositories in synaptic packets manager.
i don't remember where it comes from or why there's a ./ instead of the ubuntu version.

this allows me to go up to 1.1.8
-what's git and could i get newer versions with that?

@Quentin:
the gapless option is working fine. no more cut-offs so far, knock on wood.

For instance, I have a song and file name here

/media/storage/Music/mp3new/Alternative Rock/30 Seconds To Mars/30 Seconds To Mars - Message In A Bottle (Acoustic)

Also in that directory is a file

30_Seconds_to_Mars_album_cover.jpg

and GMB finds that cover no problem

Git brings you the latest code as squentin release it.. fixes, changes augmentations, languages

It is explained how to get GMB with Git here on the wiki starting at Initialization
73
Perhaps this is a version issue?  Any named image I have in my folder(s) is picked up as the cover art.

I use the latest from squentin git
74
French / Re: gmusicbrowser ne se lance plus
November 21, 2011, 22:14:21
Sorry for the lack of French, but this may be related to the update that is now going on with perl..

I recently had the same issues running on a sid Debian install, bit now that the perl migration is over GMB is working fine again
75
I have completed

How To - Conky, Music and Cover Art - 2 Methods for 18 Apps on the #! forums which includes GMB

Since I am getting private mail here on how to configure conky and GMB, I thought it would be appropriate to post it here