General keyboard topics, including keyboard hardware and keyboard functionality in software.

learn more… | top users | synonyms

4
votes
2answers
1k views

Is there a way to remap the AltGr key to Ctrl with setxkbmap?

I've already checked the option section in /usr/share/X11/xkb/rules/base.lst but I didn't find an entry for AltGr...
4
votes
2answers
767 views

Disable the external keyboard from a script

I have a udev rule for my external keyboard. I can catch events, and by running a script I can also reach udev env variables. Can I disable keyboard with udev? Or must I use a script to disable the ...
4
votes
1answer
1k views

Create and set custom keyboard layout

I want to create and set a custom keyboard layout with setxkbmap. I created a file in ~/.xkb/prog with this content: partial default alphanumeric_keys xkb_symbols "basic" { include "latin(type4)" ...
4
votes
2answers
747 views

How to get user-level access to modifier keypresses in console app?

I need to get access to modifier-key state for a console app I'm writing (a personalized editor). Are there any packages/libs/whatever that provide this access? I cobbled the following from ...
4
votes
3answers
5k views

'd' Key on VNC Viewer Minimises All Windows

I'm running vnc4server on an Ubuntu 10.10 box, and connecting to it from an Ubuntu 8.04 machine using TightVNC Viewer 1.3.9. I'm unable to type anything with the character d within the VNC session, as ...
4
votes
1answer
42 views

How to remotely send a keypress to an X11 application?

I've got an X11 program (Mathematica/Linux) running which contains unsaved data (calculated after I left; unfortunately I didn't have the foresight to programmatically save the data). Now I've gotten ...
4
votes
1answer
1k views

How can I automatically disable my laptop's built-in keyboard in X.org?

Distro and X.org Version Information I am using Ubuntu 12.10 with xserver-xorg/quantal 1:7.7+1ubuntu4. Disabling Built-In Keyboard in X11 I have a laptop with a built-in keyboard that no longer ...
4
votes
2answers
836 views

How does X map from kernel key scan codes to a keysym?

According to this page there is no direct mapping from udev key mappings to X, it has its own mappings. X has a (quasi) total independent way of mapping keys: X reads the kernel keycode table at ...
4
votes
2answers
2k views

Remapping caps-lock to escape, and menu to compose, on the linux console

When running X I use a .xmodmaprc to remap certain keys thusly: ! Make it so that both Caps Lock and Escape do Escape clear Lock keysym Caps_Lock = Escape ! Remap the menu key as Compose keysym Menu ...
4
votes
3answers
487 views

Diagnosing xmodmap errors

I'm getting this error when trying to use xmodmap to get rid of caps lock: $ xmodmap -e 'clear Lock' X Error of failed request: BadValue (integer parameter out of range for operation) Major opcode ...
4
votes
1answer
2k views

Keyboard macros for X and/or KDE

I'm looking for a utility to record and playback keyboard macros in X applications (KDE specifically). I've tried xmacrorec and xmacroplay, but after running them, my mouse and keyboard does not ...
4
votes
1answer
1k views

Making udev rule for bluetooth keyboard

I'm using a logitech k810 bluetooth keyboard with my laptop running Debian Wheezy. (I got the keyboard working by following this guide.) By default the F1-12 keys are multimedia keys unless the FN ...
4
votes
1answer
610 views

Trying to set keyboard layout using Xorg configuration but it's not working

I'm trying to set my HP Pavilion g6 keyboard layout to English(us) and Arabic(ara). I'm using Fedora 18, but followed Arch Wiki anyways. Here's my 90-keyboard-layout.conf file : Section ...
4
votes
1answer
249 views

detect if key is pressed from script

I would like to detect if a key is being pressed when running a script. I have the following script: #!/bin/bash sleep 0.5 xte 'str sometext' I run this script using a shortcut to paste "sometext" ...
4
votes
1answer
949 views

What does GNOME do with multimedia keys?

GNOME makes multimedia keys, such as fn+directional keys on my laptop, maybe dedicated keys on your keyboard, into very useful keys. They seem to work with a large number of application. What can I do ...
4
votes
2answers
91 views

xmodmap keybindings don't work

I am trying to use Xmodmap to add some german diareses/umlauts to my keyboard, but Xmodmap is not working with them (but is with other remappings). I am following this guide: German Umlauts on US ...
4
votes
1answer
1k views

How to get all my keys to send keycodes

I'm using Gentoo with XFCE. I have a logitech K350 keyboard, all but a few of the keys work as expected but there is one specific key that I want to use but when I run showkey no key codes are being ...
4
votes
1answer
1k views

How to turn on Keyboard Autorepeat permanently on VMware instances of CentOS 6?

In my lab we have about 40-50 machines, all cloned with the same image of CentOS 6. For some reason the keyboard auto repeat function decides to randomly turn itself off. Typically we just have ...
4
votes
1answer
401 views

Filtering the keyboard input

I have a program that takes input from the keyboard and presents a nice visualization. The purpose of the program is so that my infant can mash on the keyboard and get the computer to do something. ...
4
votes
2answers
1k views

Apple Bluetooth Keyboard

I have an Apple bluetooth keyboard and want to use it with Fedora 15. I turn on the bluetooth on the both devices. Click 'Setup new device' via Gnome3's GUI. The computer detects the keyboard but it ...
4
votes
1answer
374 views

Gnome3/Archlinux move windows with keys?

Looking for an app that will allow me to move my Gnome3 windows with keys like Ctrl+Alt+Home to move to top left corner of the screen. Essentially, this is what Winsplit revolution does on windows. ...
4
votes
1answer
845 views

Disabling or changing console switching keys

For some reasons on my Ubuntu 11.04 Natty running Linux 2.6.38-13, with an Italian layout for the keyboard, the keystrokes AltFx switch between virtual consoles (instead of the normal CtrlAltFx ...
4
votes
1answer
1k views

How to make BT keyboard available at login and OS selection screens

Is it possible to have my bluetooth keyboard active before I enter into the desktop environment? I'm unable to type in my login and password at the login screen because the Debian hasn't associated ...
4
votes
1answer
805 views

How do I fix unix so that I can use the arrow keys in a terminal?

Before I was able to use the Up/Down arrow keys to cycle through previous commands, but now when I press a directional key it outputs "^[[A". I'm running a bash shell. How do I fix this?
4
votes
0answers
71 views

OS X-like deadkeys behavior on Linux

I'm on Debian (actually Crunchbang), and my notebook has a default US layout keyboard. My native language is Brazilian Portuguese (pt-BR), so I've changed my layout with setxkbmap -layout us -variant ...
4
votes
4answers
1k views

How can I make Ctrl + Alt act like Alt gr in Ubuntu?

I recently switched to Ubuntu on my laptop and one thing that almost got me to switch back to windows is the fact that I can't make Ctrl + Alt to act like Alt gr. I have programmed in several years ...
4
votes
1answer
169 views

Set window manager's meta key depending on connected Xserver

Situation A linux server is running an xdm supporting XDMCP, it is connected to from various different Linux and OS X boxes using XDMCP via an X -query <server> command. Once the user is ...
4
votes
1answer
253 views

Diacritics do not work in GTK+ applications running on Mac OS X Snow Leopard

I am using some GTK+ applications in Mac OS X Snow Leopard. My MacBook is configured for using the Brazilian layout, which allows it to enter diacritics as dead keys (so I can write á typing ' and ...
3
votes
2answers
317 views

How can I write a non-breaking space? [closed]

When I write a question, I'd like the space between the final word and the question mark to be non-breaking, and this very sentence is an example of it (this is why it is awkward), how can I do that ? ...
3
votes
2answers
2k views

Keyboard Shortcut To Send Text Strings To Program

How can I configure a shortcut key to send a text string to the current program? The purpose is to type common entries quicker (email address, street address, phone number, username, favorite quote, ...
3
votes
1answer
6k views

How to change keyboard keymap

I accidentally set my keyboard type to US during installation, but it actually is UK type. How do I change it? [note] I use Debian Squeeze.
3
votes
1answer
819 views

How to detect global key presses

I have an Asus laptop that has a special key that can be configured to launch any software (at least on Windows). The general question is: how can I detect any key press (globally)? Then, how ...
3
votes
2answers
166 views

Multi-function CapsLock without X

I would like to remap CapsLock to Esc when pressed by itself and Ctrl when pressed with another key without using X. This is similar to a previous question ( Remap CapsLock to Escape and Control ...
3
votes
1answer
1k views

How to distinguish input from different keyboards?

I want to write an application in Python that you can use with your default keyboard and a specially designed one for the application. I will design it simply by using a small numerical keyboard with ...
3
votes
2answers
498 views

The key codes for Caps Lock, Shift, Left Control and FN key?

Can somebody please provide the key codes for these keys: Caps Lock Left Shift Left Control Option key FN The key code I'm talking about is something along the lines of \<Esc>[200~, although ...
3
votes
3answers
2k views

Ubuntu 12.04 Gnome 3 “freezes” randomly - not a normal freeze though

Since upgrading to 12.04, I've randomly experienced this strange phenomenon where my mouse mostly doesn't work and keyboard mostly does. I have not been able to identify a cause for this. Sometimes it ...
3
votes
1answer
953 views

Unix User Level Keylogger

I need to record my own keystroke data for some academic research. I wrote a regular keylogger for Windows, but now I need to write one for a Unix environment, with the constraint that I have only ...
3
votes
1answer
936 views

sysrq won't reboot with a keystroke, but will with echo “b” > /proc/sysrq-trigger

CentOS 6.2, 2.6.32-220.el6.x86_64 laptop. SysRQ is enabled for keyboard input, as is witnessed by: $ cat /proc/sys/kernel/sysrq 1 Common Magic SysRQ Keys are working such as alt-sysrq-h. However, ...
3
votes
4answers
2k views

Matlab gets “crazy” after type special characters

I'm using a computer running Ubuntu and I'm connected through ssh to a RedHat machine where I use Matlab in command line mode (matlab -nodesktop). Matlab version is 7.10.0.499 (R2010a). My problem ...
3
votes
2answers
304 views

How does an emulated keyboard work?

I have read that some USB devices emulate a keyboard and the information these devices send will be as if the information was typed on a keyboard. For example: a magnetic card reader can use an ...
3
votes
1answer
167 views

How to regain control of my computer?

I am running a database server on my computer. Sometimes it takes up so much memory resources that the system stop responding to keyboard and mouse inputs. Although I can move the mouse pointer and ...
3
votes
2answers
441 views

How do I disable the left CTRL on Ubuntu 13.10?

How do I disable the left CTRL on Ubuntu 13.10? Actually I can do it already. All I need to run is xmodmap -e "keycode 37 = " The problem I have is this only works if I run it from the terminal ...
3
votes
4answers
2k views

Recognise extra keyboard keys: Steelseries Apex

I've got a new keyboard (Steelseries Apex). It has extra key, but I can't get linux to detect it. I tried xev, getscancodes, showkey --scancodes and dmesg! Any of those command give me error or code ...
3
votes
1answer
254 views

CapsLock as modifier key for application keymaps

I am developer and currently I am using Ubuntu Linux with PyCharm IDE for development of website. In order to improve typing performance I consider change CapsLock to Hyper_L and assign it to mod3 ...
3
votes
2answers
812 views

Setting repeat rate of USB keyboard automatically

I often connect a USB keyboard to my laptop, and when I plug it in, the default repeat rate is not what I want. I tried changing it using a udev script by adding a rule `ACTION=="add", ...
3
votes
1answer
884 views

How to change a keycode using setkeycodes

I have a Thinkpad Edge E130 running Sabayon (a Gentoo-based distro), and I'm fighting the well-know bug Xorg 255 keycodes limit. My laptop has the Fn+F4 hotkey for Mic Mute/Unmute. This is the ...
3
votes
1answer
1k views

Disabling caps lock by setxkbmap makes it Shift key in Emacs

I'm using GNU Emacs 23.2.1. within Xfce 4.8.0 (both coming from the Ubuntu Natty repository). I disable the CapsLock by running /usr/bin/setxkbmap -option "ctrl:nocaps" at the beginning of the Xfce ...
3
votes
1answer
274 views

Keyboard bindings from bash to zsh?

I have the following entries on my .inputrc for bash: "\C-p": history-search-backward "\C-n": history-search-forward "\e[A": history-search-backward "\e[B": history-search-forward "\e[C": ...
3
votes
1answer
582 views

Keyboard input not displayed on the screen?

We use the `exceed tool to connect to our UNIX servers, but sometimes the command-line behaves erratically. When I am typing some command on the command-line, nothing happens -- nothing is displayed ...
3
votes
2answers
585 views

Why does US International Keyboard break Alt_R

All adding the U.S. English International (with dead keys) keyboard layout breaks my Alt_R key. Any ideas why? I'm working on RHEL 5.5 using GNOME. The problem disappears if I remove the additional ...