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

46
mrgrubert, I strongly disagree.  I do not think any music app (other than Apples own) should manage the device. 

IMHO, the OS should be responsible for the device to be seen and GMB would see the music as a directory and manage it as such, (loading, copying, moving, deleting etc) nothing more.
47
I have customized several layouts with the nowplaying_screenlet_popup settings

Right now I have one open with these settings

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

Window =  transparent=1
HBTime = 8Filler2 Length(markup="$length",initsize="XX:XX",xalign=0) _TimeSlider(direct_mode=1) PlayingTime(markup="%s",initsize="XX:XX",xalign=1)
#HBButtons = HBSettings
HBTitle = LockSong _Title(xalign=1.5)
HBArtist = LockArtist _Artist
#HBSettings = ExtraButtons(size=menu)
# 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
# VBmain = _VBText -HBTime HBButtons
VBleft = _VBText
HBtop = _VBleft Filler1 -Cover(forceratio=1,maxsize=0,hover_delay=1,hover_layout_pos= -.6w x w-p+3,hover_layout=nowplaying_screenlet_popup)
# HBmain = _VBmain Filler1 -Cover(forceratio=1,maxsize=0)
VBmain = _HBTitle _HBtop HBTime
VolumeScroll = VolumeIcon


[nowplaying_screenlet_popup]
Window = transparent=1
HBmain = 2Prev(size=small-toolbar) 2Play(size=small-toolbar) 2Next(size=small-toolbar) 27VolumeIcon -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")
VolumeScroll = VolumeIcon


I can make a change on this and switch to another layout with it's own nowplaying_screenlet_popup settings, but instead of using it's own settings from within that file, it takes on the settings from the previous layout

[D_VastOne_9]
Type = D
Name = _"VastOne Latest"

Category = gmb-art

SkinPath = gmb-art_skins/arkanoid_skin

Window =  transparent=1

#DefaultFontColor= white

VBmain = \
    HBTitle  \
    HBArtist \
    HBAlbum \
    -HBTime \
    -Cover(forceratio=1,maxsize=280,hover_delay=1,hover_layout_pos=  .5w x w-p+55,hover_layout=nowplaying_screenlet_popup)

    HBTitle = _Title LabelsIcons

    HBArtist = _Artist

    HBAlbum= _Album
    HBTime = Length(markup="$length",initsize="XX:XX",xalign=0) _TimeSlider(direct_mode=0) -PlayingTime(markup="%s",initsize="XX:XX",xalign=1)
    VolumeScroll = VolumeIcon

[nowplaying_screenlet_popup]
Window = transparent=1
HBmain= Prev(size=small-toolbar) Play(size=small-toolbar) Next(size=small-toolbar) 62Filler VolumeIcon -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")
VolumeScroll = VolumeIcon


If I completely delete the nowplaying_screenlet_popup settings from within the first file and refresh the layouts, then I get the settings from the second file ... But when I go back to the original, these settings from the second file are maintained on that one

I have tried exiting GMB completely and restarting after the changes but the same behavior happens..

Cannot find a cure for this one...

Next... I have a small request, if possible to please put a Re-load Layouts button on the same page as Settings/Plugins/Desktop Widgets.  I am constantly editing from within that page and think a Re-load Layouts button would be great

Next - I can only seem to get the new hover functions to work on the same line and joining a cover function like this
HBtop  = _VBleft Filler1 -Cover(forceratio=1,maxsize=0,hover_delay=1,hover_layout_pos=  -.6w x w-p+3,hover_layout=nowplaying_screenlet2_popup)

The question is, will it only work along with the Cover (   ) parameters or can you attach the parameters along with other functions?

Thanks

Cheers!
48
Using the following as a guide and some discussion with squentin on the IRC, I have tweaked some of my desktop widgets to reflect the changes

Quoteadd hover_layout_pos option to control position of hover_layout popups

-each coordinate can be given using a sum of number of pixels or
proportion of the widget size (w), screen size (s), or popup size (p)
-the default reference point is the upper right of the widget, unless the
position is preceded with "abs:" in which case the reference point is 0,0
-if the position is only in w or s, a "smart alignment" of the popup is done:
the popup will be centered, or left aligned if on the left border (0w or 0s),
or right aligned if on the right border (1w or 1s)
examples :
".5w x w" : center bottom of widget, equivalent to ".5w-.5p x w-p"
"abs: .5s x 0" : center top of screen, equivalent to "abs: .5s-.5p x 0"
".5w x w-p-10" : 10 pixels above center bottom of widget
example of use :
Cover(hover_delay=1, hover_layout_pos=.5w x w, hover_layout=some_layout)

This code

[nowplaying_screenlet_vastone2]
Type=D
DefaultFont=8
Window        = size=240x240,transparent=1
VBmain= Artist(xalign=.5) Album(xalign=.5) Title(xalign=.5) HBTime _Cover(forceratio=1,hover_delay=1,hover_layout_pos=.5w x w,hover_layout=nowplaying_screenlet2_popup)
HBTime        = Length(markup="$length",initsize="XX:XX",xalign=0) _TimeBar(direct_mode=1) PlayingTime(markup="%s",initsize="XX:XX",xalign=1)


[nowplaying_screenlet2_popup]
Window = transparent=1
HBmain= 12Prev 12Play 12Next 12VolumeIcon 12BMSettings
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")
VolumeScroll = VolumeIcon


Has the timer at the top and the pop ups at the bottom



This one moves the time to the bottom and adjust the popup to go below the timebar


[nowplaying_screenlet2 VastOne Now]
Type=D
DefaultFont=8
Window = size=240x240,transparent=1
VBmain= Artist(xalign=.5) Album(xalign=.5) Title(xalign=.5) _Cover(forceratio=1,hover_delay=1,hover_layout_pos=  .5w x w-p+60,hover_layout=nowplaying_screenlet2_popup) _HBTime
HBTime = Length(markup="$length",initsize="XX:XX",xalign=0) _TimeSlider(direct_mode=1) PlayingTime(markup="%s",initsize="XX:XX",xalign=1)

[nowplaying_screenlet2_popup]
Window = transparent=1
HBmain= 12Prev 12Play 12Next 12VolumeIcon 12BMSettings
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")
VolumeScroll = VolumeIcon




Some notes from IRC

.5w x w-p-10 would move it up 10 pixels

.5w x w-p+35 would move it down 35 pixels

.5w x w+0 effectively disables the smart-align


49
Quentin..  Thanks for all the explanations and code!!!!
50
Did you remove them from within the GMB Desktop Widget too?
51
Yes, this is all I have in my layouts folder...  And if you or squentin were to add additional layouts or changes, I would just add them to this file

Thanks BTW, I am glad you like it
52
Yes ... that code needs to be there... But you can combine them all into one file, which is what I did here

This does not have squentins in it but it does have yours and mine...

file name is screenslets.layout and it is in /home/myusername/.config/gmusicbrowser/layouts

[nowplaying_screenlet2]
Type=D
DefaultFont=8
Window = size=240x240,transparent=1
VBmain= Title(xalign=.5) Artist(xalign=.5) Album(xalign=.5) HBTime _Cover(forceratio=1,hover_delay=1,hover_layout=nowplaying_screenlet2_popup)
HBTime = Length(markup="$length",initsize="XX:XX",xalign=0) _TimeSlider(direct_mode=1) PlayingTime(markup="%s",initsize="XX:XX",xalign=1)

[nowplaying_screenlet_vastone2]
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) -HBTime
HBTime        = Length(markup="$length",initsize="XX:XX",xalign=0) _TimeBar(direct_mode=1) PlayingTime(markup="%s",initsize="XX:XX",xalign=1)


[nowplaying_screenlet2_popup]
Window = transparent=1
HBmain= 12Prev 12Play 12Next 12BMSettings 12VolumeIcon
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")
VolumeScroll = VolumeIcon

[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

[nowplaying_timeslider_rizlaw]
Type=D
DefaultFont=8
Window = size=240x240,transparent=1
VBmain= HBtime _Cover(forceratio=1,hover_delay=1,hover_layout=nowplaying_screenlet2_popup)  Title(xalign=.5) Artist(xalign=.5) Album(xalign=.5)
HBtime= Length(markup="$length",initsize="XX:XX",xalign=0) _TimeSlider(direct_mode=1) PlayingTime(markup="%s",initsize="XX:XX",xalign=1)
53
Just wanted to show you my final tweaks on this..  I found this way allows the popup buttons to be on their own at the bottom without ever floating over anything - Of course you do not see them in this image



[nowplaying_screenlet2]
Type=D
DefaultFont=8
Window = size=240x240,transparent=1
VBmain= Title(xalign=.5) Artist(xalign=.5) Album(xalign=.5) HBTime _Cover(forceratio=1,hover_delay=1,hover_layout=nowplaying_screenlet2_popup)
HBTime = Length(markup="$length",initsize="XX:XX",xalign=0) _TimeSlider(direct_mode=1) PlayingTime(markup="%s",initsize="XX:XX",xalign=1)

[nowplaying_screenlet_vastone2]
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) -HBTime
HBTime        = Length(markup="$length",initsize="XX:XX",xalign=0) _TimeBar(direct_mode=1) PlayingTime(markup="%s",initsize="XX:XX",xalign=1)

54
This edit puts the timeslider on top

[nowplaying_timeslider_rizlaw]
Type=D
DefaultFont=8
Window = size=240x240,transparent=1
VBmain= HBtime _Cover(forceratio=1,hover_delay=1,hover_layout=nowplaying_screenlet2_popup)  Title(xalign=.5) Artist(xalign=.5) Album(xalign=.5)
HBtime= Length(markup="$length",initsize="XX:XX",xalign=0) _TimeSlider(direct_mode=1) PlayingTime(markup="%s",initsize="XX:XX",xalign=1)


As far as the triangle, I cannot be more specific with the fix since I quit using it... I do not recall if I ever did fix it, although I do recall reading about a fix, either on the Ubuntu Forums or The Fedora Forums

I apologize, I cannot be any more specific than that
55
That white triangle is from a Gnome 3 issue that I recall from using Gnome Shell on Fedora 15..  There is a fix for it ...  Has to do with a corner move settings hat you can tweak.  I think I may have even discussed it with squentin on these forums somewhere
56
Thanks...  You should have enough info between squentins and mine to see the differences and create your own or edit it to your liking...

Good Luck
57
I would just use the top two sections of those files then
58
With Time Slider

Name it

vastone-timeslider.layout


[nowplaying_screenlet2_vastone]
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) -HBTime
HBTime = Length(markup="$length",initsize="XX:XX",xalign=0) _TimeSlider(direct_mode=1) PlayingTime(markup="%s",initsize="XX:XX",xalign=1)

[nowplaying_screenlet2_popup_vastone]
Window = transparent=1
HBmain= 7Prev 7Play 7Next 7BMSettings 7VolumeIcon
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")
VolumeScroll = VolumeIcon

[nowplaying_screenlet3_vastone]
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_vastone]
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


With TimeBar

Name it

vastone-timebar.layout

[nowplaying_screenlet_vastone2]
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) -HBTime
HBTime = Length(markup="$length",initsize="XX:XX",xalign=0) _TimeBar(direct_mode=1) PlayingTime(markup="%s",initsize="XX:XX",xalign=1)

[nowplaying_screenlet2_popup_vastone2]
Window = transparent=1
HBmain= 7Prev 7Play 7Next 7BMSettings 7VolumeIcon
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")
VolumeScroll = VolumeIcon

[nowplaying_screenlet3_vastone2]
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_vastone2]
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


These should work for you

Copy the content of these and save them to the file names and you should be good to go
59
rizlaw

Can you post the file?  and the name of the file?  It is most likely due to the 2 files (your original from squentin) and mine having the same names in them and I will check them out

60
Here is he code with a Time Slider and the time how you want it...  I think this looks better

[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) -HBTime
HBTime = Length(markup="$length",initsize="XX:XX",xalign=0) _TimeSlider(direct_mode=1) PlayingTime(markup="%s",initsize="XX:XX",xalign=1)

[nowplaying_screenlet2_popup]
Window = transparent=1
HBmain= 7Prev 7Play 7Next 7BMSettings 7VolumeIcon
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")
VolumeScroll = VolumeIcon

[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


Here is he code with a TimeBar and the time the way you want it...  It has the total time on the left and remaining on the right that is click able to show how much time is remaining or elapsed (This is on both of these)

[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) -HBTime
HBTime = Length(markup="$length",initsize="XX:XX",xalign=0) _TimeBar(direct_mode=1) PlayingTime(markup="%s",initsize="XX:XX",xalign=1)

[nowplaying_screenlet2_popup]
Window = transparent=1
HBmain= 7Prev 7Play 7Next 7BMSettings 7VolumeIcon
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")
VolumeScroll = VolumeIcon

[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


I have also moved the Title/Album/Artist to the Top

Edit - I also added a VolumeIcon and made it scrollable to adjust the volume