-   Linux - Desktop (
-   -   mapping keys to commands in console (

throughthegreens 02-13-2010 10:50 PM

mapping keys to commands in console
Hi I've recently set up my AccessIBM button to start X windows from the console, using loadkeys and a custom keymap. I notice that since all that's happening is a string and a newline are being sent to the current tty, launching the command, I must be logged in and running a shell for this to work, otherwise login catches the string and thinks my username is su - user -c "startx". I would like it to work without a running shell. Any ideas?

jschiwal 02-14-2010 09:23 AM

Could you configure your desktop environment for auto login for your regular user and instead of starting X directly, init the run level on pressing the key?

throughthegreens 02-14-2010 12:43 PM

I use fvwm with startx and only a BIOS password. I have defined the key ( which is 148) to KeyboardSignal in my keymap, and I'm editing inittab right now.
...using this line in inittab



All times are GMT -5. The time now is 02:20 PM.