SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#301 2012-01-03 11:58:17

RiccITA
Member
Registered: 2011-12-30
Posts: 14

Re: How To - Conky/Lua, Music and Cover Art - 2 Methods for 18 Apps

conkyvlctemplate

${color1}[--datatype=TI --maxlength=32]
${color1}[--datatype=AR --maxlength=32]
${color1}[--datatype=AL --maxlength=30]
${#FFFFFF}[--datatype=PT] ${color light blue}${execibar 1 ~/conkyVlc.py --datatype=PP} ${#FFFFFF}[--datatype=LE]
        ${voffset 7}${#FFFFFF}[--datatype=ST] ${color light blue} Volume ${#FFFFFF}[--datatype=VO] ${color light blue}BitRate ${#FFFFFF}[--datatype=BR]
${image [--datatype=CA] -p 0,145 -s 335x335}${image ~/images/vlc.png -p 2,110 -s 30x30}

and conkyvlcrc

 # .conkyrc - Edited from various examples across the 'net
 # Used by VastOne on #! Debian Wheezy

 # Font Settings ##############################################################
 # Use Xft (anti-aliased font and stuff) 
use_xft yes
xftfont Liberation Sans:size=15
 # Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 0.9
 # Force UTF8? requires XFT ###
override_utf8_locale yes

draw_shades no
draw_outline no
uppercase no
 ######################## End Font Settings ###################################

 # Begin Window Settings ######################################################
alignment bottom_right
own_window yes
own_window_type normal
own_window_transparent no
own_window_class Conky
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

 # ARGB can be used for real transparency
 # NOTE that a composite manager is required for real transparency.
 # This option will not work as desired (in most cases) in conjunction with
 # 'own_window_type override'
own_window_argb_visual no
 # When ARGB visuals are enabled, this use this to modify the alpha value
 # Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity. 
#own_window_argb_value 0

minimum_size 500 5    ## width, height
maximum_width 500    ## width - usually a good idea to equal minimum width.

gap_x 50    ## left &right
gap_y 50    ## up & down
 ####################### End Window Settings ##################################

 # Border Settings ############################################################
border_outer_margin 40
border_inner_margin 0

draw_borders no
border_width 1
stippled_borders 10
 ####################### End Border Settings ##################################

 # Color Settings #############################################################
default_shade_color grey
default_outline_color black

 # Main Color Settings ########################################################
default_color white
color1 B9CDD4
color2 white
color3 white
color4 BAF58B


 # Use the Xdbe extension? (eliminates flicker)
 # It is highly recommended to use own window with this
 # one so double buffer won't be so big
double_buffer yes

 # Adds spaces around certain objects to stop them
 # from moving other things around.
 # only works with mono fonts
use_spacer right
 # Arguments are left, right, and none (default)

 # Size of the standard text buffer (default is 256 bytes).
 # Will allow for more text display per variable.
text_buffer_size 2048

 # Sets bars size even for bars that do not hace that function
 # IE: execbar and execibar
default_bar_size 235 9

 # 0 makes Conky run forever
total_run_times 0
update_interval 1
cpu_avg_samples 1
net_avg_samples 1
no_buffers yes

 # Defaults to 4MiB
 # Set to 0 to disable the image cache
 # Increase this value if you use $image lots
imlib_cache_size 0

TEXT
${if_running vlc}
${execp ~/conkyVlc.py --template=~/conkyVlc.template}
$endif

Offline

Be excellent to each other!

#302 2012-01-03 16:17:57

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 7,425
Website

Re: How To - Conky/Lua, Music and Cover Art - 2 Methods for 18 Apps

RiccITA wrote:

argh.. not working.
I mean, done killall conky, done conky -c .conkyvlcrc, the result is no conky showing at all.
When I enter in terminal conky -c conkyvlcrc (without the stop before the word) this is what is showing

riccardo@ubuntu:~$ conky -c conkyvlcrc

I may be wrong here, but I think that should be:

conky -c ~/.conkyvlcrc &

The & will still allow errors to show.

He added it to an existing conky I think, or added info from another cony to it.

Last edited by Sector11 (2012-01-03 16:18:49)

Offline

#303 2012-01-03 17:31:44

RiccITA
Member
Registered: 2011-12-30
Posts: 14

Re: How To - Conky/Lua, Music and Cover Art - 2 Methods for 18 Apps

sorry, I tried in order
conky -c .conkyvlcrc
conky -c conkyvclrc (invalid file)
conky -c ~/.conkyvlcrc &
conky -c ~/conkyvlcrc &
conky -c ~/.conkyvlcrc
conky -c ~/conkyvlcrc
each time killall conky to be sure,but practically the same results, exept from when I changed some visual variables in .conkyvlcrc, this night I will format the linux partition and do from scratch everything back!

Offline

#304 2012-01-03 18:56:22

VastOne
#! Ranger
From: #! Fringe Division
Registered: 2011-04-26
Posts: 9,728
Website

Re: How To - Conky/Lua, Music and Cover Art - 2 Methods for 18 Apps

I do not think there is a need to rebuild linux..

I need you to run this with a song playing in Vlc

python conkyVlc.py --datatype=CA

and post the outcome

Next try this

change in .conkyvlcrc

own_window_type normal 

to

own_window_type desktop

and run the conky again

you could also try

own_window_type override

The place to change how these conky's are displayed (colors) and the image is in the conkyVlc.template

I would change these lines first

${image [--datatype=CA] -p 0,145 -s 335x335}${image ~/images/vlc.png -p 2,110 -s 30x30}

to

${image [--datatype=CA] -p 0,145 -s 235x235}${image ~/images/vlc.png -p 2,110 -s 30x30}

Just make sure Vlc is open and playing a song when you run

conky -c .conkyvlcrc

Last edited by VastOne (2012-01-03 21:06:38)


VSIDO
If you build it, they will come...
Words That Build Or Destroy

Offline

#305 2012-01-03 19:56:37

VastOne
#! Ranger
From: #! Fringe Division
Registered: 2011-04-26
Posts: 9,728
Website

Re: How To - Conky/Lua, Music and Cover Art - 2 Methods for 18 Apps

@jef

I created a new layout for GMB used as a Desktop Widget if you are interested

screenshot-01032012-032403pm.php

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)
# HBmain        = _VBmain Filler1 -Cover(forceratio=1,maxsize=0)
VBmain        = _HBtop HBTime
VolumeScroll    = VolumeIcon

And here is another version of it with a different setup

screenshot-01032012-070706pm.php

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

Last edited by VastOne (2012-01-04 01:13:14)


VSIDO
If you build it, they will come...
Words That Build Or Destroy

Offline

#306 2012-01-03 21:04:31

RiccITA
Member
Registered: 2011-12-30
Posts: 14

Re: How To - Conky/Lua, Music and Cover Art - 2 Methods for 18 Apps

here is datatype=ca

riccardo@ubuntu:~$ python conkyVlc.py --datatype=CA
/tmp/cover

I done all the steps and this is conky -v [...]

riccardo@ubuntu:~$ conky -v .conkyvlcrc
Conky 1.8.0 compiled Fri Apr 23 10:38:37 UTC 2010 for Linux 2.6.24-27-server (i686)

Compiled in features:

System config file: /etc/conky/conky.conf
Package library path: /usr/lib/conky

 X11:
  * Xdamage extension
  * XDBE (double buffer extension)
  * Xft
  * ARGB visual

 Music detection:
  * MPD
  * MOC

 General:
  * math
  * hddtemp
  * portmon
  * Curl
  * RSS
  * Weather (METAR)
  * Weather (XOAP)
  * wireless
  * support for IBM/Lenovo notebooks
  * nvidia
  * eve-online
  * config-output
  * Imlib2
  * ALSA mixer support
  * apcupsd
  * iostats
  * ncurses
  * Lua

  Lua bindings:
   * Cairo
   * Imlib2

Offline

#307 2012-01-03 21:07:31

VastOne
#! Ranger
From: #! Fringe Division
Registered: 2011-04-26
Posts: 9,728
Website

Re: How To - Conky/Lua, Music and Cover Art - 2 Methods for 18 Apps

I am sorry RiccITA

That was supposed to be

conky -c .conkyvlcrc


VSIDO
If you build it, they will come...
Words That Build Or Destroy

Offline

#308 2012-01-04 01:18:12

VastOne
#! Ranger
From: #! Fringe Division
Registered: 2011-04-26
Posts: 9,728
Website

Re: How To - Conky/Lua, Music and Cover Art - 2 Methods for 18 Apps

RiccITA,

How are things going?

I need you to try the two different settings of normal or override and see what the results are. 

own_window_type desktop

or

own_window_type override

I also need to see the results of conky -c .conkyvlcrc ran from terminal..  with a song playing n Vlc

I also need confirmation that the song you are playing does in fact have a cover.jpg (or any image) in the directory of the song playing


VSIDO
If you build it, they will come...
Words That Build Or Destroy

Offline

#309 2012-01-04 07:08:53

RiccITA
Member
Registered: 2011-12-30
Posts: 14

Re: How To - Conky/Lua, Music and Cover Art - 2 Methods for 18 Apps

Ok, I've finished to upgrade to ubuntu 11.10 amd64 and..conky is still not working properly! smile

These are the results of desktop
riccardo@Ubuntu-Riccardo:~$ conky -c .conkyvlcrc
Conky: desktop window (1600095) is subwindow of root window (af)
Conky: window type - desktop
Conky: drawing to created window (0x4200001)
Conky: drawing to double buffer
/usr/bin/env: python2: File o directory non esistente

and override
Conky: received SIGINT or SIGTERM to terminate. bye!
riccardo@Ubuntu-Riccardo:~$ conky -c .conkyvlcrc
Conky: desktop window (1600095) is subwindow of root window (af)
Conky: window type - override
Conky: drawing to created window (0x4200001)
Conky: drawing to double buffer
/usr/bin/env: python2: File o directory non esistente

Yes, I checked and the jpg is there.

Offline

#310 2012-01-04 07:11:01

VastOne
#! Ranger
From: #! Fringe Division
Registered: 2011-04-26
Posts: 9,728
Website

Re: How To - Conky/Lua, Music and Cover Art - 2 Methods for 18 Apps

Did you remember to do this again?

sudo ln -s /usr/bin/python2.6 /usr/bin/python2

VSIDO
If you build it, they will come...
Words That Build Or Destroy

Offline

#311 2012-01-04 07:40:56

RiccITA
Member
Registered: 2011-12-30
Posts: 14

Re: How To - Conky/Lua, Music and Cover Art - 2 Methods for 18 Apps

yes, I copied the code from page 12!

Offline

#312 2012-01-04 07:45:06

VastOne
#! Ranger
From: #! Fringe Division
Registered: 2011-04-26
Posts: 9,728
Website

Re: How To - Conky/Lua, Music and Cover Art - 2 Methods for 18 Apps

run this from terminal and post back the results please

python -V

VSIDO
If you build it, they will come...
Words That Build Or Destroy

Offline

#313 2012-01-04 09:16:28

RiccITA
Member
Registered: 2011-12-30
Posts: 14

Re: How To - Conky/Lua, Music and Cover Art - 2 Methods for 18 Apps

riccardo@Ubuntu-Riccardo:~$ python -V
Python 2.7.2+

Now, when I see the black box, if I open VLC it becomes taller, if i close it it goes back to the original size.

Last edited by RiccITA (2012-01-04 09:16:56)

Offline

#314 2012-01-04 16:49:07

VastOne
#! Ranger
From: #! Fringe Division
Registered: 2011-04-26
Posts: 9,728
Website

Re: How To - Conky/Lua, Music and Cover Art - 2 Methods for 18 Apps

Are you saying it is now running without this error?

/usr/bin/env: python2: File o directory non esistente

VSIDO
If you build it, they will come...
Words That Build Or Destroy

Offline

#315 2012-01-04 17:01:50

RiccITA
Member
Registered: 2011-12-30
Posts: 14

Re: How To - Conky/Lua, Music and Cover Art - 2 Methods for 18 Apps

hmm no, the error is always there if I use vlc when conkyvlc is made run from terminal.
If I write python -V than it says the conky version.

Offline

#316 2012-01-04 17:17:54

VastOne
#! Ranger
From: #! Fringe Division
Registered: 2011-04-26
Posts: 9,728
Website

Re: How To - Conky/Lua, Music and Cover Art - 2 Methods for 18 Apps

RiccITA

Edit  conkyVlc.py .. it is in your home directory

change the first line from this

#!/usr/bin/env python2

to this

#!/usr/bin/env python2.7

Save it and run .conkyvlcrc from terminal again

let me know the output of terminal

Last edited by VastOne (2012-01-04 17:18:11)


VSIDO
If you build it, they will come...
Words That Build Or Destroy

Offline

#317 2012-01-05 13:08:09

RiccITA
Member
Registered: 2011-12-30
Posts: 14

Re: How To - Conky/Lua, Music and Cover Art - 2 Methods for 18 Apps

yeeee something happened!!
riccardo@Ubuntu-Riccardo:~$ conky -c ~/.conkyvlcrc
Conky: desktop window (1800095) is subwindow of root window (af)
Conky: window type - override
Conky: drawing to created window (0x3400001)
Conky: drawing to double buffer
SITUATION: A black windows opens in the down right corner as usual, with no text. I open VLC and the terminal starts to get crazy in a totally new way!
Unfortunately the flow is very fast and I'm not able to save all the text (if you have a way to do it teach me!
Here is a part of the text that is repeatedly flowing

calling the dbus service:argument of type 'NoneType' is not iterable
sh: /home/riccardo/.conkyvlc.py: not found
ERROR: Issue calling the dbus service:argument of type 'NoneType' is not iterable
[error repeated many times]
sh: /home/riccardo/.conkyvlc.py: not found

So I changed in conkyrc .conkyvlc.py into conkyvlc.py and I renamed .conkyvlc.py into conkyvlc.py
I opened again the terminal killing conky, black box opens up, I open vlc and the flow starts but they still say
sh: /home/riccardo/conkyvlc.py: not found
Conky: Unable to load image '-p'

I still go on, play a music in VLC and the black box shows also the album art!!
In the terminal they also add this repeated phrase
Conky: Unable to load image '/home/riccardo/images/vlc.png'
sh: /home/riccardo/conkyvlc.py: not found

the point is that I don't have such a folder, because in italian is called Immagini, but I do have one called .images (created by another conky). In both "immagini" and ".images" I do cutted the vlc.png image.

When I close the terminal the black box is still there with no info, when I open vlc with a song it start showing album art and info with the text in the pictures!

yesmusic.png When playing music
nomusich.png When not playing music but VLC open
conky1.png Vlc closed,no music

UPDATE
I had some problems with the capital letter of conkyVlcrc that in some file was conkyvclrc instead and this created some problems like the progress bar not working!
I also set in the conkytemplate to point to .images instead of images so that finally now it can find the picture!

Last edited by RiccITA (2012-01-05 13:38:20)

Offline

#318 2012-01-05 15:14:42

RiccITA
Member
Registered: 2011-12-30
Posts: 14

Re: How To - Conky/Lua, Music and Cover Art - 2 Methods for 18 Apps

After working a bit on it this is the current result, I'm very happy about it and I only have to say thanks to you!!!!
Here is the final output, perfectly working after reboot, I open VLC and it works correctly!
conkyfunzionante.png

I just have some aesthetical issues to solve.. do you see the small boxes left to artist and album, there is also one hidden under the lenght of the album. Well, in the conkytemplate there are not, I mean is it possibile that they are configured to appear from the python.py? Or they are somehow appearing because of conky.rc?
Also, at the end of the bar there is the lenght of the album, which I cannot separate from the bar, and it appears too close to the edge, how can I put some pixels between the two?

this is the conkytemplate code, what's that [fffff] for?

${goto 20}[--datatype=TI]
${goto 20} [--datatype=AR]
${goto 20} [--datatype=AL]
${goto 20}${#FFFFFF}[--datatype=PT]${goto 45}${execibar 1 ~/conkyVlc.py --datatype=PP}${#FFFFFF}${#FFFFFF}${#FFFFFF}${goto 120}[--datatype=LE]
${image [--datatype=CA] -p 45,545 -s 180x180}

Last edited by RiccITA (2012-01-05 15:16:36)

Offline

#319 2012-01-05 16:35:55

VastOne
#! Ranger
From: #! Fringe Division
Registered: 2011-04-26
Posts: 9,728
Website

Re: How To - Conky/Lua, Music and Cover Art - 2 Methods for 18 Apps

Great to see it working...  the ffffff is a color code


VSIDO
If you build it, they will come...
Words That Build Or Destroy

Offline

#320 2012-01-12 04:56:03

VastOne
#! Ranger
From: #! Fringe Division
Registered: 2011-04-26
Posts: 9,728
Website

Re: How To - Conky/Lua, Music and Cover Art - 2 Methods for 18 Apps

With some new advice and know how from squentin, the GMusicBrowser developer, I have created a couple of new Desktop Widgets for GMB

The uniqueness is that the play buttons, volume and settings button are not shown until they are hovered over ... 

The only differences is a different type of TimeBar on each one

With Time Slider

Name it

vastone-timeslider.layout

and copy this code into it .. save it in /home/yourusername/.config/gmusicbrowser/layouts/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

and copy this code into it .. save it in /home/yourusername/.config/gmusicbrowser/layouts/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

Copy the content of these and save them to the file names and you should be good to go.  These would be added from GMB in Settings/Plugins/Desktop Widgets


VSIDO
If you build it, they will come...
Words That Build Or Destroy

Offline

#321 2012-01-12 13:46:25

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 7,425
Website

Re: How To - Conky/Lua, Music and Cover Art - 2 Methods for 18 Apps

VastOne wrote:

With some new advice and know how from squentin, the GMusicBrowser developer, I have created a couple of new Desktop Widgets for GMB

The uniqueness is that the play buttons, volume and settings button are not shown until they are hovered over ... 

The only differences is a different type of TimeBar on each one

With Time Slider

Name it

vastone-timeslider.layout

and copy this code into it .. save it in /home/yourusername/.config/gmusicbrowser/layouts/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

and copy this code into it .. save it in /home/yourusername/.config/gmusicbrowser/layouts/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

Copy the content of these and save them to the file names and you should be good to go.  These would be added from GMB in Settings/Plugins/Desktop Widgets

Awesome stuff that, I'd play musinc if my machine had more oopmh!
Is squentin going to include it in the app as well?

Offline

#322 2012-01-12 22:26:53

VastOne
#! Ranger
From: #! Fringe Division
Registered: 2011-04-26
Posts: 9,728
Website

Re: How To - Conky/Lua, Music and Cover Art - 2 Methods for 18 Apps

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

screenshot-01122012-022746pm.php

[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) 

This also is now just  single file with everything in it

Sector11 - The discussion with squentin regarding this layout and setup has initiated additional code he is developing to make the float point bar positional...  Right now you have no control over where it is, but his new code will allow it...

Never met a more involved developer, and GMB has been around for 5 years ... Since Feb 2007 is the earliest changelog I can find on it...

Last edited by VastOne (2012-01-12 23:33:22)


VSIDO
If you build it, they will come...
Words That Build Or Destroy

Offline

#323 2012-01-12 23:21:06

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 7,425
Website

Re: How To - Conky/Lua, Music and Cover Art - 2 Methods for 18 Apps

VastOne wrote:

This also is now just  single file with everything in it

Sector11 - The discussion with squentin regarding this layout and setup has initiated additional code he is developing to make the float point bar positional...  Right now you have no control over where it is, but his new code will allow it...

Never met a more involved developer, and GMB has been around for 5 years ... Since Feb 2007 is he earliest changelog I can find on it...

gmusicbrowser is one of the files I mucked up.  sad  I'll have it running soon I want to play with this.

  20:19:14 ~
         $ gmusicbrowser
Error loading Net::DBus :
Attempt to reload gmusicbrowser_dbus.pm aborted.
Compilation failed in require at /usr/bin/gmusicbrowser line 314.
 => controlling gmusicbrowser through DBus won't be possible.

Name "GMB::DBus::bus" used only once: possible typo at /usr/bin/gmusicbrowser line 297.
GStreamer.pm not found
 -> gstreamer output won't be available.
Reading saved tags in /home/sector11/.config/gmusicbrowser/gmbrc ...
plugin /usr/bin/../share/gmusicbrowser/plugins/mpris2.pm failed : Can't locate Net/DBus/Annotation.pm in @INC (@INC contains: /usr/bin/../share/gmusicbrowser /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at /usr/bin/../share/gmusicbrowser/plugins/mpris2.pm line 21.
BEGIN failed--compilation aborted at /usr/bin/../share/gmusicbrowser/plugins/mpris2.pm line 21.

Reading saved tags in /home/sector11/.config/gmusicbrowser/gmbrc ... done
These commands were not found : flac123, ogg123
 => these file types won't be played by the 123 output : oga, flac
Use of uninitialized value $_[0] in vec at (eval 83) line 1.
Use of uninitialized value $_[0] in vec at (eval 84) line 1.
Use of uninitialized value $_[0] in vec at (eval 83) line 1.
Use of uninitialized value $_[0] in vec at (eval 84) line 1.
Writing tags in /home/sector11/.config/gmusicbrowser/gmbrc ...
Writing tags in /home/sector11/.config/gmusicbrowser/gmbrc ... done

  20:19:28 ~
         $

I'll get it figured out - this is not the place.

Offline

#324 2012-01-13 01:43:00

VastOne
#! Ranger
From: #! Fringe Division
Registered: 2011-04-26
Posts: 9,728
Website

Re: How To - Conky/Lua, Music and Cover Art - 2 Methods for 18 Apps

@Sector11 -  I just did a new install of GMB on a debian sid setup and everything played right out of the install... Including all the dependencies

just redo your

sudo apt-get install gmusicbrowser

and that should install gmusicbrowser 1.1.8

Last edited by VastOne (2012-01-13 01:43:31)


VSIDO
If you build it, they will come...
Words That Build Or Destroy

Offline

Help fund CrunchBang, donate to the project!

#325 2012-01-13 03:54:46

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 7,425
Website

Re: How To - Conky/Lua, Music and Cover Art - 2 Methods for 18 Apps

VastOne wrote:

@Sector11 -  I just did a new install of GMB on a debian sid setup and everything played right out of the install... Including all the dependencies

just redo your

sudo apt-get install gmusicbrowser

and that should install gmusicbrowser 1.1.8

I have that.

  00:53:20 ~
         $ gmusicbrowser -v
unknown option '-v'
gmusicbrowser v1.1.8 (c)2005-2011

I'm missing other stuff.

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo