]> Devoid-pointer.net GitWeb - omnibook.git/commitdiff
Sometimes I miss multimedia-keys on my laptop. This small patch maps some
authorHolger Nelson <hnelson@hnelson.de>
Fri, 12 Jan 2007 14:41:16 +0000 (14:41 +0000)
committerHolger Nelson <hnelson@hnelson.de>
Fri, 12 Jan 2007 14:41:16 +0000 (14:41 +0000)
Fn-combos to play etc. with nbsmi-backend. It might be of some use to
others, but I don't think this is something that should go into trunk by
default.

misc/README.mmkeys [new file with mode: 0644]
misc/mmkeys.patch [new file with mode: 0644]

diff --git a/misc/README.mmkeys b/misc/README.mmkeys
new file mode 100644 (file)
index 0000000..9a9fc04
--- /dev/null
@@ -0,0 +1,9 @@
+This patch maps some extra Fn+key combinations to keycodes for multimedia
+keyboards and only works for the nbsmi-backend. It might be useful if you
+want to control some mediaplayer while working with other applications.
+
+Following combinations are mapped:
+Fn+Y => Previous song
+Fn+X => Play/pause
+Fn+V => Stop CD
+Fn+B => Next song
\ No newline at end of file
diff --git a/misc/mmkeys.patch b/misc/mmkeys.patch
new file mode 100644 (file)
index 0000000..8e0936d
--- /dev/null
@@ -0,0 +1,13 @@
+--- nbsmi.c~   2007-01-12 15:25:18.000000000 +0100
++++ nbsmi.c    2007-01-12 15:25:18.000000000 +0100
+@@ -424,6 +424,10 @@
+       { KEY_F8, KEY_WLAN},
+       { KEY_F9, KEY_FN_F9},
+       { KEY_SPACE, KEY_ZOOM},
++      { KEY_Y, KEY_PREVIOUSSONG},
++      { KEY_X, KEY_PLAYPAUSE},
++      { KEY_B, KEY_NEXTSONG},
++      { KEY_V, KEY_STOPCD},
+       { 0,0},
+ };