![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
Ubuntu 9.10 is out!!!
When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu. The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely. |
|
General Help All your general support questions for Ubuntu, Kubuntu, Edubuntu and Xubuntu. |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Chocolate Ubuntu Mocha Blend
![]() Join Date: Feb 2008
Location: 52°38'41.6"N/1°19'43.6"E
Beans: 1,837
|
Conky Rhythmbox Python Script
I have switched OS and now use ArchLinux rather than any debian based distro. It looks like the continuing support of my scripts will be without ppa updates, and instead my time will support AUR based installs once I get to understand them. I will provide the usual tarball downloads of the source for non Arch users from within these forum.
Intro This is a simple script to display what is current playing in Rhythmbox. The script talks to Rhythmbox using dbus, and allows the outputting of track info and the use of templates... There is a README with the install and attached here, I suggest you give it atleast a quick once over! Basic Install Method 1: Using apt 1) Create the necessary list file for access to the conky repository by running one of these. Karmic Koala: Code:
sudo wget -q http://www.kaivalagi.com/ubuntu/ppa/m-buck-conky-karmic.list -O /etc/apt/sources.list.d/m-buck-conky-karmic.list Code:
sudo wget -q http://www.kaivalagi.com/ubuntu/ppa/m-buck-conky-jaunty.list -O /etc/apt/sources.list.d/m-buck-conky-jaunty.list Code:
sudo wget -q http://www.kaivalagi.com/ubuntu/ppa/m-buck-conky-intrepid.list -O /etc/apt/sources.list.d/m-buck-conky-intrepid.list Code:
sudo wget -q http://www.kaivalagi.com/ubuntu/ppa/m-buck-conky-hardy.list -O /etc/apt/sources.list.d/m-buck-conky-hardy.list Code:
wget -q http://www.kaivalagi.com/ubuntu/ppa/m-buck-conky-key.gpg -O- | sudo apt-key add - Code:
sudo apt-get update && sudo apt-get install conkyrhythmbox Download and run the attached .deb file Warning, this will not ensure you are kept up-to-date. Only method 1 will do that Method 3: Using tar.gz file Extract all the contents of the attached tar.gz file to an appropriate folder, and edit the conkyRhythmbox script to point to the correct location where conkyRhythmbox.py is. Unless you are using a non-Debian based OS I don't suggest this. Users of Debian/Ubuntu flavour OS's should ideally use method 1. Again will will not receive updates using this method. ONLY method 1 can do this for you All further details on setup are orientated around the deb package based install, so may differ from what you choose your setup to be, if done using the tarball. Usage Help You can get the current help options at any time by running (change the path as necessary): Code:
conkyRhythmbox -h Code:
conkyRhythmbox --help Code:
Usage: conkyRhythmbox [options]
Options:
-h, --help show this help message and exit
-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,--ratingchar. Note that
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),
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
If defined the status text for the player will be
overridden. The text must be comma delimited in the
form 'Playing,Paused,Stopped'. Command line option
overridden if used in templates.
-n, --nounknownoutput
Turn off unknown output such as "Unknown" for title
and "0:00" for length. Command line option overridden
if used in templates.
-v, --verbose Request verbose output, not a good idea when running
through conky!
-V, --version Displays the version of the script.
--errorlogfile=FILE If a filepath is set, the script appends errors to the
filepath.
--infologfile=FILE If a filepath is set, the script appends info to the
filepath.
Development history going forwards can be seen here https://code.launchpad.net/~m-buck/+junk/conkyrhythmbox All packages available from me can be found here:
I have also created a new website, for now it is relatively sparse, but it does details my conky scripts to a certain degree. You can find it here: http://www.kaivalagi.com
__________________
Please post, don't PM/Email me!
Apps: gtk-desktop-info > html rendered on the desktop using plugins and templates Conky: Conky Guide | My Conky Scripts Sites: Kaivalagi.com | PPA Last edited by kaivalagi; 2 Weeks Ago at 08:48 PM.. |
|
|
|
|
|
#2 |
|
Gee! These Aren't Roasted!
![]() |
Re: Conky Rhythmbox Python Script
W00T!!!
I can now get rid of exaile! at least until they come out with 0.3 or w/e it is. Thanks man. Now to figure out a new layout... Hippy
__________________
hippyrandall.com | Stargate Wars | HP Laptop This is the first age that's paid much attention to the future, which is alittle ironic since we may not have one. -- Arthur Clarke |
|
|
|
|
|
#3 |
|
Chocolate Ubuntu Mocha Blend
![]() Join Date: Feb 2008
Location: 52°38'41.6"N/1°19'43.6"E
Beans: 1,837
|
Re: Conky Rhythmbox Python Script
I couldn't help myself, I found out how to get the dbus info for Rhythmbox so had to do it!
I am switching to Rhythmbox now too...
__________________
Please post, don't PM/Email me!
Apps: gtk-desktop-info > html rendered on the desktop using plugins and templates Conky: Conky Guide | My Conky Scripts Sites: Kaivalagi.com | PPA |
|
|
|
|
|
#4 |
|
Chocolate Ubuntu Mocha Blend
![]() Join Date: Feb 2008
Location: 52°38'41.6"N/1°19'43.6"E
Beans: 1,837
|
Re: Conky Rhythmbox Python Script
UPDATE
I've updated the script as follows:
The first post attachments have been updated, and the apt package is available
__________________
Please post, don't PM/Email me!
Apps: gtk-desktop-info > html rendered on the desktop using plugins and templates Conky: Conky Guide | My Conky Scripts Sites: Kaivalagi.com | PPA |
|
|
|
|
|
#5 |
|
5 Cups of Ubuntu
![]() Join Date: Apr 2007
Location: Eau Claire, WI
Beans: 16
Ubuntu 8.04 Hardy Heron
|
Re: Conky Rhythmbox Python Script
Noob here: how do you put it into you config file?
__________________
Success is a lousy teacher. It seduces smart people into thinking they can't lose. - Bill Gates
|
|
|
|
|
|
#6 |
|
Chocolate Ubuntu Mocha Blend
![]() Join Date: Feb 2008
Location: 52°38'41.6"N/1°19'43.6"E
Beans: 1,837
|
Re: Conky Rhythmbox Python Script
Okay, if you install this using method 1 all the hard work is done for you without any possible problems...
Once you have installed the script can be run from the command line and through an exec call in conky as "conkyRhythmbox" There is an example provided with the install, which if you open in an editor you'll see how things work. The file is: /usr/share/conkyrhythmbox/example/conkyrc To run this example conky for this script, the following should be entered into the terminal: Code:
conky -c /usr/share/conkyrhythmbox/example/conkyrc Any issues just ask...
__________________
Please post, don't PM/Email me!
Apps: gtk-desktop-info > html rendered on the desktop using plugins and templates Conky: Conky Guide | My Conky Scripts Sites: Kaivalagi.com | PPA |
|
|
|
| Bookmarks |
| Tags |
| conky, music, python, rhythmbox, script |
| Thread Tools | |
| Display Modes | |
|
|