[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[emms-help] emms and dbus

From: joakim
Subject: [emms-help] emms and dbus
Date: Mon, 25 Feb 2008 11:13:04 +0100
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/23.0.60 (gnu/linux)

I toyed a bit with the dbus support of cvs emacs and emms this morning.
Gnome can send multimedia key events through dbus to emacs and thus
control emms.

I attach the code below.

if no one else is working on this I would like to solicit input and
prepare a nicer looking file for inclusion.

Some improvements I would like to examine:
- My laptop keyboard only has 4 multimedia keys, how to control emms
efficiently then(only play, stop next previous, no seek)?
- test it in kde
- test with more multimedia keyboards, I have a stack at home

(require 'dbus)

(defun emms-dbus-signal-handler (msg1 signal-name)
  (message "msg %s %s" msg1 signal-name)
   ((equal "Next" signal-name)
   ((equal "Previous" signal-name)
   ((equal "Stop" signal-name)
   ((equal "Play" signal-name)

 :session "org.gnome.SettingsDaemon" "/org/gnome/SettingsDaemon"
 "org.gnome.SettingsDaemon" "MediaPlayerKeyPressed"

Joakim Verona

reply via email to

[Prev in Thread] Current Thread [Next in Thread]