Re: How to bind keys to commands, without requiring login?

2007-09-04 Thread Masatran, R. Deepak
* Masatran, R. Deepak [EMAIL PROTECTED] 2007-08-30
 I want to bind some keys to commands. I can do this using my window manager,
 but I want it to work even if (1) Nobody is logged in OR if (2) the screen
 is locked with a screen-saver.
 
 I am using Debian 4.0, with GDM, and Sawfish.

Some more information: I want this for listening to music, with MPD as the
server, and Sonata as the client. 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

Now, the only problem is that XBindKeys does not work when I am not logged in.

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



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



Re: How to bind keys to commands, without requiring login?

2007-09-03 Thread Celejar
On Sat, 1 Sep 2007 02:37:58 +0530
Masatran, R. Deepak [EMAIL PROTECTED] wrote:

 * Celejar [EMAIL PROTECTED] 2007-08-30
  On Thu, 30 Aug 2007 22:27:56 +0530
  Masatran, R. Deepak [EMAIL PROTECTED] wrote:
   I want to bind some keys to commands. I can do this using my window 
   manager,
   but I want it to work even if (1) Nobody is logged in OR if (2) the screen
   is locked with a screen-saver.
   
   I am using Debian 4.0, with GDM, and Sawfish.
  
  Have you tried the standard 'xbindkeys'?
 
 I tried it, but how can I make it work in spite of the screen-saver?

Sorry, it was just a guess; I don't use a screensaver or DM.

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

Celejar
--
mailmin.sourceforge.net - remote access via secure (OpenPGP) email
ssuds.sourceforge.net - A Simple Sudoku Solver and Generator


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



Re: How to bind keys to commands, without requiring login?

2007-09-01 Thread Daniel Burrows
On Fri, Aug 31, 2007 at 06:04:14PM -0400, P Kapat [EMAIL PROTECTED] was heard 
to say:
 On 8/30/07, Masatran, R. Deepak [EMAIL PROTECTED] wrote:
  I want to bind some keys to commands. I can do this using my window manager,
  but I want it to work even if (1) Nobody is logged in OR if (2) the screen
  is locked with a screen-saver.
 
 I do not quite understand the issues!!
 (1) What good are keys when nobody is logged in??

  Imagine that you have a system with a music player (e.g. mpd) and you
want to control it without having to log in first.

  Daniel


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



Re: How to bind keys to commands, without requiring login?

2007-08-31 Thread Masatran, R. Deepak
* Celejar [EMAIL PROTECTED] 2007-08-30
 On Thu, 30 Aug 2007 22:27:56 +0530
 Masatran, R. Deepak [EMAIL PROTECTED] wrote:
  I want to bind some keys to commands. I can do this using my window manager,
  but I want it to work even if (1) Nobody is logged in OR if (2) the screen
  is locked with a screen-saver.
  
  I am using Debian 4.0, with GDM, and Sawfish.
 
 Have you tried the standard 'xbindkeys'?

I tried it, but how can I make it work in spite of the screen-saver?

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



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



Re: How to bind keys to commands, without requiring login?

2007-08-31 Thread P Kapat
On 8/30/07, Masatran, R. Deepak [EMAIL PROTECTED] wrote:
 I want to bind some keys to commands. I can do this using my window manager,
 but I want it to work even if (1) Nobody is logged in OR if (2) the screen
 is locked with a screen-saver.

I do not quite understand the issues!!
(1) What good are keys when nobody is logged in??
(2) If the screen is locked with a screen saver (by some user, may be
yourself), you still have the six VT, whch will give a shell (after
LOGGING in), wherein you might (I am not sure) use xbindkeys (as
Celejar was suggesting) to launch your favorite shell scripts (as long
as they dont require X). You certainly do not wish to launch a command
bypassing the screen lock, do you?

-- 
Regards
PK
--
http://counter.li.org  #402424


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



Re: How to bind keys to commands, without requiring login?

2007-08-31 Thread Benjamin A'Lee
On Fri, Aug 31, 2007 at 06:04:14PM -0400, P Kapat wrote:
 On 8/30/07, Masatran, R. Deepak [EMAIL PROTECTED] wrote:
  I want to bind some keys to commands. I can do this using my window manager,
  but I want it to work even if (1) Nobody is logged in OR if (2) the screen
  is locked with a screen-saver.
 
 I do not quite understand the issues!!
 (1) What good are keys when nobody is logged in??
 (2) If the screen is locked with a screen saver (by some user, may be
 yourself), you still have the six VT, whch will give a shell (after
 LOGGING in), wherein you might (I am not sure) use xbindkeys (as
 Celejar was suggesting) to launch your favorite shell scripts (as long
 as they dont require X). You certainly do not wish to launch a command
 bypassing the screen lock, do you?

Keys are quite useful when nobody is logged in, if for example you want
them to work on the login screen (for example, changing a keymap to make
it possible to type usernames/passwords).

It's also perfectly possible to disable switching to a VT from X11. I
seem to remember Ubuntu does by default, which I always discover just
when I have a problem that I need to switch to a terminal for...

Ben


signature.asc
Description: Digital signature


Re: How to bind keys to commands, without requiring login?

2007-08-31 Thread Douglas A. Tutty
On Fri, Aug 31, 2007 at 11:32:49PM +0100, Benjamin A'Lee wrote:
 
 It's also perfectly possible to disable switching to a VT from X11. I
 seem to remember Ubuntu does by default, which I always discover just
 when I have a problem that I need to switch to a terminal for...
 

Untill the X server dies and you end up at a VT.

Doug.



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




How to bind keys to commands, without requiring login?

2007-08-30 Thread Masatran, R. Deepak
I want to bind some keys to commands. I can do this using my window manager,
but I want it to work even if (1) Nobody is logged in OR if (2) the screen
is locked with a screen-saver.

I am using Debian 4.0, with GDM, and Sawfish.

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



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



Re: How to bind keys to commands, without requiring login?

2007-08-30 Thread Celejar
On Thu, 30 Aug 2007 22:27:56 +0530
Masatran, R. Deepak [EMAIL PROTECTED] wrote:

 I want to bind some keys to commands. I can do this using my window manager,
 but I want it to work even if (1) Nobody is logged in OR if (2) the screen
 is locked with a screen-saver.
 
 I am using Debian 4.0, with GDM, and Sawfish.

Have you tried the standard 'xbindkeys'?

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

Celejar
--
mailmin.sourceforge.net - remote access via secure (OpenPGP) email
ssuds.sourceforge.net - A Simple Sudoku Solver and Generator


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



Re: How to bind keys to commands, without requiring login?

2007-08-30 Thread Douglas A. Tutty
On Thu, Aug 30, 2007 at 10:27:56PM +0530, Masatran, R. Deepak wrote:
 I want to bind some keys to commands. I can do this using my window
 manager, but I want it to work even if (1) Nobody is logged in OR if
 (2) the screen is locked with a screen-saver.
 
 I am using Debian 4.0, with GDM, and Sawfish.

Do you mean that you want a key on a keyboard to run a command even if
nobody is logged in?  Under what user do you want such commands to run?
It sounds like a security hole of some dimension to me.

Doug.


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