no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
Next revision | |||
— | third_party_apps:conky2 [2011/02/04 22:53] – created vastone | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ==== Conky GMusicbrowser - VastOne ==== | ||
+ | I have created Conky GMusicbrowser scripts based on Kaivalagi (Mark Buck) scripts who is well known in the Conky world. | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | Attached is a file (conkygmb.tar.gz) that contains the following files: | ||
+ | |||
+ | * conkyGmusicbrowser.py | ||
+ | * | ||
+ | * conkyGmusicbrowser-GetCoverart.py | ||
+ | * | ||
+ | * conky-timedate.conf - conky rc file | ||
+ | * | ||
+ | * conkyGmusicbrowser.template - Template used by the script for ease of display and changes | ||
+ | * | ||
+ | * start-conkygmusic.sh - Bash file I use to start Conky GMB on every start/ | ||
+ | * | ||
+ | * Extract each of these to your /home/your username/ directory | ||
+ | |||
+ | Also included are enhanced icons (using the Gimp) I use for the display | ||
+ | * | ||
+ | * trayicon.png needs to be extracted to /home/your username/ | ||
+ | * | ||
+ | * gmusicbrowser.png needs to be extracted to your /home/your username/ | ||
+ | |||
+ | == Note == | ||
+ | |||
+ | You will need to make sure each file is set to be executable | ||
+ | |||
+ | example | ||
+ | < | ||
+ | chmod u+x start-conkygmusic.sh | ||
+ | </ | ||
+ | |||
+ | I will explain each function and how to set these up | ||
+ | |||
+ | * conkyGmusicbrowser.py | ||
+ | * | ||
+ | * conkyGmusicbrowser-GetCoverart.py | ||
+ | |||
+ | Once these are in your /home/your username/ directory nothing further will need to be done | ||
+ | |||
+ | == Note == | ||
+ | |||
+ | I am working on getting a ppa package setup for all of this and once it is done changes to these will be automatically applied | ||
+ | |||
+ | * conky-timedate.conf | ||
+ | |||
+ | Within this file is where you can change some of the layout options of conky. You will have to do nothing to this file for it to work. | ||
+ | |||
+ | For more information on these settings, I would look in the mega thread at Ubuntu Forums [[http:// | ||
+ | |||
+ | * conkyGmusicbrowser.template | ||
+ | < | ||
+ | ${color sky blue}Title: ${color2}[--datatype=TI --maxlength=32] | ||
+ | ${color sky blue}Artist: | ||
+ | ${color sky blue}Album: ${color2}[--datatype=AL --maxlength=30] | ||
+ | ${color sky blue}Position: | ||
+ | ${color sky blue}${execibar 1 ~/ | ||
+ | ${voffset 7}${color2}[--datatype=ST] ${color sky blue} Volume ${color2}[--datatype=VO] ${color sky blue}BitRate ${color2}[--datatype=BR] | ||
+ | ${image ~/ | ||
+ | ${voffset 108}${image / | ||
+ | </ | ||
+ | |||
+ | In this template file you see how the datatypes are defined and therefore how it is displayed on the desktop. | ||
+ | |||
+ | < | ||
+ | Usage: conkyGmusicbrowser [options] | ||
+ | Options: | ||
+ | -h, --help | ||
+ | -t FILE, --template=FILE | ||
+ | define a template file to generate output in one call. | ||
+ | A displayable item in the file is in the form | ||
+ | [--datatype=TI]. The following are possible options | ||
+ | within each item: --datatype, | ||
+ | the short forms of the options are not currently | ||
+ | supported! None of these options are applicable at | ||
+ | command line when using templates. | ||
+ | -d DATATYPE, --datatype=DATATYPE | ||
+ | [default: TI] The data type options are: ST (status), | ||
+ | CA (coverart), TI (title), AL (album), AR (artist), GE | ||
+ | (genre), YR (year), TN (track number), FN (file name), | ||
+ | BR (bitrate k/s), LE (length), PP (current position in | ||
+ | percent), PT (current position in time), VO (volume), | ||
+ | RT (rating). Not applicable at command line when using | ||
+ | templates. | ||
+ | -r CHAR, --ratingchar=CHAR | ||
+ | [default: *] The output character for the ratings | ||
+ | scale. Command line option overridden if used in | ||
+ | templates. | ||
+ | -s TEXT, --statustext=TEXT | ||
+ | [default: Playing, | ||
+ | comma delimited in the form ' | ||
+ | option overridden if used in templates. | ||
+ | -n, --nounknownoutput | ||
+ | Turn off unknown output such as " | ||
+ | and " | ||
+ | if used in templates. | ||
+ | -S, --secondsoutput | ||
+ | only. | ||
+ | -m LENGTH, --maxlength=LENGTH | ||
+ | [default: 0] Define the maximum length of any | ||
+ | datatypes output, if truncated the output ends in | ||
+ | " | ||
+ | -v, --verbose | ||
+ | through conky! | ||
+ | -V, --version | ||
+ | --errorlogfile=FILE | ||
+ | filepath. | ||
+ | --infologfile=FILE | ||
+ | filepath. | ||
+ | </ | ||
+ | |||
+ | And finally is the bash script that starts this for you - Note that you must change the path /home/your username/ to fit yours | ||
+ | |||
+ | * start-conkygmusic.sh | ||
+ | < | ||
+ | #!/bin/sh | ||
+ | sleep 30 | ||
+ | gmusicbrowser & | ||
+ | sleep 10 | ||
+ | / | ||
+ | #sleep 30 | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | I run this as a startup application in Ubuntu | ||
+ | |||
+ | If you have any questions on this, please do not hesitate to ask and I will be happy to assist. |