Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

A learning project, please help

by koindrop (Novice)
on May 09, 2013 at 19:49 UTC ( #1032830=perlquestion: print w/replies, xml ) Need Help??
koindrop has asked for the wisdom of the Perl Monks concerning the following question:

I've been programming with perl here and there for a while, though I am still a pretty basic programmer. I came up with the idea of a learning project where my long term goal is to program a screensaver, on a system running Ubuntu 8.04.4 LTS with Gnome 2.22.3, that gets track info from Rythmbox 0.11.5 and puts it on screen moving around. I really have no idea where to start, so I was hoping some people could give an idea of the concepts and toolsets I would need to learn to accomplish this. To give you an idea of what I know, my most complicated programs are 500ish lines of code using perl, GTK2 and lwp. Thank you in advance.

Replies are listed 'Best First'.
Re: A learning project, please help
by marto (Bishop) on May 09, 2013 at 20:57 UTC

    Phosphor is a reasonably common screensaver on Linux. It's pretty customizable, and can take the output of another program as input. Interestingly enough this example I read today illustrates this. Perhaps there's an API or plugin for your media player you could use to create a script to achieve your goal using Phosphor. IIRC other apps like pidgin can read track info from various media players. That may be an avenue to explore.

Re: A learning project, please help
by forgot_other_usrname (Novice) on May 09, 2013 at 21:53 UTC
    On Gnome, programs can communicate through DBus. You'll want to check out this article (from 2006, but 8.04 is ancient anyway so it should still be relevant for your needs). I've never tried, but I'm guessing Net::DBus should be a place to start looking.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1032830]
Front-paged by Corion
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2017-01-18 04:02 GMT
Find Nodes?
    Voting Booth?
    Do you watch meteor showers?

    Results (160 votes). Check out past polls.