Re: How to bind keys to commands, through X11 or GDM

2007-09-15 Thread Chris Bannister
On Mon, Sep 10, 2007 at 08:32:55PM +0530, Masatran, R. Deepak wrote:
 
 and HOME/.xbindkeysrc with contents:
 
 mpc toggle
 XF86AudioPlay
 
 mpc stop
 XF86AudioStop
 
 mpc prev
 XF86AudioPrev
 
 mpc next
 XF86AudioNext
 
 This works, but not when the screen is locked. How can I get this setup to 
 work
 through the screen-saver? Thanks!

Thats a loaded question. If the screen is locked then should it still be
able to accept keystrokes? You almost had me, nice trick ... nice.

-- 
Chris.
==


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



How to bind keys to commands, through X11 or GDM

2007-09-10 Thread Masatran, R. Deepak
I want to bind some keys to commands, for listening to music. I use MPD as
music server, and Sonata as music client. How can I get the key-bindings to
work through the screen-saver? I am using Debian 4.0, with Xorg, GDM,
XScreenSaver, and Sawfish.

I made /etc/X11/Xmodmap with contents:

keycode 151 = XF86AudioPlay
keycode 159 = XF86AudioStop
keycode 178 = XF86AudioPrev
keycode 236 = XF86AudioNext

and HOME/.xbindkeysrc with contents:

mpc toggle
XF86AudioPlay

mpc stop
XF86AudioStop

mpc prev
XF86AudioPrev

mpc next
XF86AudioNext

This works, but not when the screen is locked. How can I get this setup to work
through the screen-saver? Thanks!

-- 
Masatran, R. Deepak http://research.iiit.ac.in/~masatran/



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]