I’m trying to inject keystrokes into the input daemon so as to simulate typing from a Bash script. Is this possible, and if so, how can I make it happen?
I am using
Putty -> Suse box -> vim 7.2 combo for editing and want to remap Ctrl + arrows combo to a particular task. But for some reason, Vim ignores the shortcut and goes into insert mode and inserts character “D” (for left) of “C” (for right).
I am looking for an explanation of what happens in Linux when this key combination is pressed to change the current terminal. In particular, what software component intercepts this key combination and changes the terminal? Is it the kernel? If it is the kernel, could you provide the location of the source file which handles this?
I am writing a new custom keyboard layout for Xorg, but there is one particular glyph which does not exist in Unicode. It is, however, easy to create it by using a standard letter plus a combining diacritic mark.
Edit: I realized that the “problem” was not only in Ubuntu but in Debian itself and Ubuntu just inherited it, so I had this migrated from Ask Ubuntu
I want to create and set a custom keyboard layout with setxkbmap. I created a file in
~/.xkb/prog with this content:
I have a standard keyboard with numerical keys on the right side (I guess it’s called 104-key keyboard). I want to use the numerical keys only as numerical keys. That means I don’t want the NumLock to switch on and off the numerical keys.
How can one programmatically “freeze” the Keyboard & Mouse temporarily, so that no one could mess with the system?
CentOS 6.2, 2.6.32-220.el6.x86_64 laptop. SysRQ is enabled for keyboard input, as is witnessed by: