From 8307ae57a39902e5eed90e54c12c30427b19f52a Mon Sep 17 00:00:00 2001 From: Holger Nelson Date: Fri, 12 Jan 2007 14:41:16 +0000 Subject: [PATCH] Sometimes I miss multimedia-keys on my laptop. This small patch maps some 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 | 9 +++++++++ misc/mmkeys.patch | 13 +++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 misc/README.mmkeys create mode 100644 misc/mmkeys.patch diff --git a/misc/README.mmkeys b/misc/README.mmkeys new file mode 100644 index 0000000..9a9fc04 --- /dev/null +++ b/misc/README.mmkeys @@ -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 index 0000000..8e0936d --- /dev/null +++ b/misc/mmkeys.patch @@ -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}, + }; + -- 2.43.5