Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: XMMS Controller

by Chady (Priest)
on Nov 04, 2004 at 07:33 UTC ( #405108=note: print w/ replies, xml ) Need Help??

in reply to XMMS Controller

a small nitpick; I would write your click() as:

sub click { my $todo = shift; system "xmms -$todo"; }

and change the buttons' callbacks to

$window->Button(-text=>"Prev", -command=> sub{click('r')})->pack(-side +=>'left'); $window->Button(-text=>"Play", -command=> sub{click('p')})->pack(-side +=>'left'); $window->Button(-text=>"Pause", -command=> sub{click('u')})->pack(-sid +e=>'left'); $window->Button(-text=>"Next", -command=> sub{click('f')})->pack(-side +=>'left');

You might also want to check wmxmms which sits in some kind of dock and can control xmms for you.

He who asks will be a fool for five minutes, but he who doesn't ask will remain a fool for life.
Chady |
Are you a Linux user in Lebanon? join the Lebanese Linux User Group.

Comment on Re: XMMS Controller
Select or Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://405108]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2015-11-29 11:59 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (750 votes), past polls