Registered Member
|
Does anyone know of a way to display the OSD (current song info) from the command line or from a script? I used to use dcop to do this in the 1.x versions, but since Amarok switched to using dbus for 2.0 I haven't been able to find another way of doing this.
I use xbindkeys for various shortcuts and hotkeys. I've been able to switch over to dbus for most of the hotkeys I use for Amarok, such as Play, Stop, etc. However, I haven't been able to find a dbus method for displaying the OSD. Any tips would be appreciated. Thanks. |
Registered Member
|
I just upgraded to 2.2 and noticed that this functionality has now been implemented. Sweet! For anyone else that may have been missing this functionality, this will do the trick:
dbus-send --type=method_call --dest=org.kde.amarok /Player org.freedesktop.MediaPlayer.ShowOSD One difference I've noticed compared to the old dcop implementation is that the dbus always displays the OSD whereas the dcop implementation acted as a toggle. Eg., if the OSD was already displayed, then calling it would hide rather than show the OSD. This could be handy if, for example, the OSD popped up during a track change and covers a spot on the screen that you're currently using. Any chance this functionality could also be reimplemented? I'll probably file a bug/wish report later, but I'm curious if there's been any discussion on this so far. |
KDE Developer
|
Well, we could either change the behavior of the existing function (risky, some scripts might depend on it), or add something like "ToggleOSD". It's fairly low priority, but you could request it.
--
Mark Kretschmann - Amarok Developer |
Registered users: Baidu [Spider], Bing [Bot], Google [Bot]