LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-18-2012, 02:44 PM   #1
kaivai
LQ Newbie
 
Registered: Nov 2012
Posts: 15

Rep: Reputation: Disabled
Query Play Status in Rhythmbox


I was just wondering if anyone knew how to query the play status in rhythmbox from either the terminal, or through rhythmbox's python terminal (so I could write a python script to query the play status).

for the record, I'm looking for if a song is paused, playing, or stopped.

Terminal:
rhythmbox-client doesn't seem to have an option for play status
Code:
rhythmbox-client --print-playing-format
Python Console:
And although I am unfamiliar with Python, I think the following is a subroutine, so it won't give me access to if a song is playing, it just reports back "True" if the play/pause action is completed successfully.

Code:
shell.props.shell_player.playpause()
I'm trying to report information to my xmobar. I have a status bar for volume, and I am using UTF-8 characters for my rhythmbox status. Currently it keeps track of my multimedia button pushes - but it would be nice if changes while rhythmbox was open would automatically be pushed to my xmobar.

Last edited by kaivai; 12-18-2012 at 02:46 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Play the Guitar with Rhythmbox LXer Syndicated Linux News 0 08-19-2012 08:12 PM
Rhythmbox can't play music CD satimis Debian 1 04-02-2009 11:21 PM
Why don't mp3's play in rhythmbox? tom_oa731 Fedora 11 10-30-2006 01:39 PM
Can't play MP3s with Amarok or RhythmBox raccoonone Ubuntu 5 09-15-2006 02:31 PM
Rhythmbox locks up when I try to play any song irwinr Linux - Software 7 12-29-2004 11:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration