[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

bind keyboard POWER button to start some program



Hello!
How can one bind a keyboard key (in my case I would like to bind keyboard POWER button to /etc/init.d/poweroff script) or key sequence (i.e. ctrl + f1) to a script launch or something. For example one pushes keyboard POWER BUTTON and the script /etc/init.d/poweroff is being started. I need that working in terminal, don't need in X. I found hotkeys package but this one requires X11. Thanks in advance.
                                    Vladi.



Reply to: