From: Holger Nelson Date: Fri, 12 Jan 2007 14:41:16 +0000 (+0000) Subject: Sometimes I miss multimedia-keys on my laptop. This small patch maps some X-Git-Url: https://gitweb.devoid-pointer.net/?a=commitdiff_plain;h=8307ae57a39902e5eed90e54c12c30427b19f52a;p=omnibook.git 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. --- 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}, + }; +