Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi there. I'd like to bind a command to a key on an EagleTouch USB keyboard. It's a strange company and I can't find information on it's hot keys. There's a sleep button on it. What do I need to know in order to get this key to invoke a command in the console (i.e. cmatrix -a -l -s -u 3) so I can run a screensaver when I'm not using the computer. Is it also possible to have the computer automatically invoke the command after a certain period of time? Thanks for your help.
Are you using a desktop environment? Like KDE or Gnome? If you are, both offer ways for you to bind keys to events. KDE lets you do it with the "Menu Editor" under "System" in the K menu.
Ouch. I don't think you can do that just from a console. You could make a script, put whatever you wanted done into it, name it one letter and put it in a PATH folder. Then you'de have it two key-presses away, I don't know of anyway to bind hotkeys from just plain Linux. Best of luck, though.
i got here from google searching for a way to bind a key to a command in the console
in x i use xbindkeys and exactly the same i want to have in the console
e.g. ctrl-alt-ins should reboot the system (i use ctrlaltdel to halt it) and other key-combinations should run things not directly in the actually running shell (daemon-like keybinding)
does nobody know something like this? do we need to write it? :-) (not that i have time myself ;-) )
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.