On Mon, Nov 05, 2001 at 02:00:22PM -0500, Georg Nikodym wrote:
> On Mon, 2001-11-05 at 12:01, Stephane Jourdois wrote:
> > Hope this helps, and if anybody knows how to implement keysyms, I'm
> > interested... as long as I don't have to patch XFree86 !
>=20
> No need. Here's what I do with xmodmap:
>=20
> !
> ! Dell 8000
> ! I have sawfish map these to
> ! xmms -u, -s, -r and -f respectively
> !
> keycode 129 =3D XF86AudioPlay
> keycode 130 =3D XF86AudioStop
> keycode 131 =3D XF86AudioPrev
> keycode 132 =3D XF86AudioNext
And that works indeed !
Try :
[ `ps -C xmms | wc -l` =3D 7 ] && xmms --pause || xmms --play
instead of xmms -u. Then you really have Play/Pause...
For those who use enlightenment... here are the keybindings for it
(in your .enlightenment/keybindings.cfg, that you copyied from
/usr/share/enlightenment/config/) :
__NEXT_ACTION
__MODIFIER_KEY __NONE
__KEY XF86AudioPlay
__EVENT __KEY_PRESS
__ACTION __A_EXEC /home/kwisatz/bin/xmms_play
__NEXT_ACTION
__MODIFIER_KEY __NONE
__KEY XF86AudioStop
__EVENT __KEY_PRESS
__ACTION __A_EXEC xmms --stop
__NEXT_ACTION
__MODIFIER_KEY __NONE
__KEY XF86AudioPrev
__EVENT __KEY_PRESS
__ACTION __A_EXEC xmms --rew
__NEXT_ACTION
__MODIFIER_KEY __NONE
__KEY XF86AudioNext
__EVENT __KEY_PRESS
__ACTION __A_EXEC xmms --fwd
/home/kwisatz/bin/xmms_play is a onle-liner (Cf. above)
PS : I know this is OT, but as the only mean of those i8k buttons
is multimedia, I think it's great to learn how to bind them :-)
Stephane
--=20
/// Stephane Jourdois /"\ ASCII RIBBON CAMPAIGN \\\
((( Ing=E9nieur d=E9veloppement \ / AGAINST HTML MAIL )))
\\\ 6, av. de la Belle Image X ///
\\\ 94440 Marolles en Brie / \ +33 6 8643 3085 ///
--nFreZHaLTZJo0R7j
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iEYEARECAAYFAjvn7H4ACgkQk2dpMN4A2NPwfgCfePUqDG0nLnDiIvYjQGDNTWKm
vegAn2UgMg3duk8DJTl2cuSRd/d+lMAz
=0vhs
-----END PGP SIGNATURE-----
--nFreZHaLTZJo0R7j--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/