Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-02-2009, 12:19 PM   #1
LQ Newbie
Registered: Feb 2008
Posts: 4

Rep: Reputation: 0
commandline mplayer to update konsole tab name

I'm trying to get the title/album information from an ogg stream (specifically to automatically update my konsole tab name when the song changes.

The information is obviously there, I'm just not finding any way to access it in a meaningful way.
Old 01-02-2009, 12:39 PM   #2
David the H.
Bash Guru
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
So where are you stuck, exactly? Are you having trouble getting the tag info, or changing the tab name, or both, or what? What have you attempted so far?

I know you can change the tab session name on konsole, but I'm not sure if it's possible to do it dynamically. Perhaps with a dcop call? And it may be tricky to detect song changes in the running stream.

You may want to look into trying a different command line player. I called up the stream in moc, for example, and it displays the current track in the window title (not the tab name).
Old 01-03-2009, 12:57 AM   #3
LQ Newbie
Registered: Feb 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Yeah, changing the tab name is just a dcop call.

I'm stuck pulling the information from the stream. I've tried using Python as a wrapper, though the call doesn't ever return anything because it's still streaming. I searched through DCOP to see if there was any way I could connect to mplayer that way. No dice.

And then I simply ran out of ideas. I honestly have no idea how to accomplish this short of hacking something into the source code.

And I'm sorry, I lied a little. I'm using Yakuake for my konsole, so I don't get a window title.


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
Tabs in Konsole Tab Bar too big! fcfelix SUSE / openSUSE 0 07-19-2006 02:47 AM
FC 4. Modify ALT+TAB behaviour to CTRL+TAB xtracto Linux - Software 1 09-22-2005 02:06 PM
Konsole won't close after KDE 3.2 update on Sarge Moloko Debian 2 04-29-2004 05:50 AM
tab in Konsole shows size true_atlantis Linux - Software 5 02-19-2004 11:29 PM
Redirecting output of tab tab benjaminrtz Linux - General 1 04-28-2003 10:11 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:33 PM.

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