summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Seguin <guillaume@segu.in>2008-05-16 14:22:11 +0200
committerGuillaume Seguin <guillaume@segu.in>2008-05-16 14:22:11 +0200
commit48ab4e97007680e0bfd83ac477e9b7baffca08e9 (patch)
tree343dfc543e6240d8c69498c77e2cb8ef3d7121c7
parent2c67eafa220848ebbdb5b78bcb4cb35cd08608f8 (diff)
downloadkuwii-48ab4e97007680e0bfd83ac477e9b7baffca08e9.tar.gz
kuwii-48ab4e97007680e0bfd83ac477e9b7baffca08e9.tar.bz2
Update sample config file
-rw-r--r--kuwii/config.py42
1 files changed, 31 insertions, 11 deletions
diff --git a/kuwii/config.py b/kuwii/config.py
index 81d172d..7aed486 100644
--- a/kuwii/config.py
+++ b/kuwii/config.py
@@ -10,16 +10,36 @@ debug = True
# Actions
actions = {
- '2': ['echo','echo button 2 rox'],
- '1': ['echo','echo button 1 rox'],
- 'B': ['inexistantaction','blah'],
- 'A': ['echo','echo button A rox'],
- '-': ['echo','echo button - rox'],
- 'H': ['echo','echo button H rox'],
- 'L': ['echo','echo button L rox'],
- 'R': ['echo','echo button R rox'],
- 'D': ['echo','echo button D rox'],
- 'U': ['echo','echo button U rox'],
- '+': ['echo','echo button + rox']
+ '1': ['echo',['echo Kuwii rox']],
+ '2': ['quit',[]],
+ 'B': ['cmd',['gcalctool']],
+ 'A': ['dbus',[{'name': 'org.gnome.Rhythmbox',
+ 'object': '/org/gnome/Rhythmbox/Player',
+ 'method': 'playPause',
+ 'args': [True],
+ 'kwargs': {}}]],
+ 'H': ['echo',['echo button H rox']],
+ 'L': ['key',["KEY_LEFTCTRL", "KEY_LEFTALT", "KEY_LEFT"]],
+ 'R': ['key',["KEY_LEFTCTRL", "KEY_LEFTALT", "KEY_RIGHT"]],
+ 'D': ['dbus',[{'name': 'org.gnome.Rhythmbox',
+ 'object': '/org/gnome/Rhythmbox/Player',
+ 'method': 'next',
+ 'args': [],
+ 'kwargs': {}}]],
+ 'U': ['dbus',[{'name': 'org.gnome.Rhythmbox',
+ 'object': '/org/gnome/Rhythmbox/Player',
+ 'method': 'previous',
+ 'args': [],
+ 'kwargs': {}}]],
+ '-': ['dbus',[{'name': 'org.gnome.Rhythmbox',
+ 'object': '/org/gnome/Rhythmbox/Player',
+ 'method': 'setVolumeRelative',
+ 'args': [-0.1],
+ 'kwargs': {}}]],
+ '+': ['dbus',[{'name': 'org.gnome.Rhythmbox',
+ 'object': '/org/gnome/Rhythmbox/Player',
+ 'method': 'setVolumeRelative',
+ 'args': [0.1],
+ 'kwargs': {}}]],
}