General keyboard topics, including keyboard hardware and keyboard functionality in software.
Questions tagged [keyboard]
1282 questions
24
votes
6 answers
Remap CapsLock to Escape and Control System Wide
Is it possible to remap the CapsLock key system wide such that when the CapsLock button is pressed by itself it acts as the escape key and when pressed with another key it acts as the control key?

Zameer Manji
- 767
21
votes
5 answers
second keyboard to run commands
On my computer I have two USB keyboards plugged in. Instead of having both just type the same key, is it possible for a second keyboard to be setup to run commands instead of typing letters? And If that's not possible, can it be setup to at least…

captainandcoke
- 313
- 2
- 5
9
votes
1 answer
Rewiring key stroke
Some keys in my keyboard came to a sticky end after a catastrophic coke spill.
I do not intend to replace the old keyboard, since the whole laptop will be replaced next year.
The keys in question are: arrow up, arrow down, shift and '/'.
Shift has a…

Pierre B
- 2,213
8
votes
1 answer
How to disable laptop keyboard on plugging in a USB keyboard?
I use my USB keyboard in home and now I want disable the laptop keyboard on plug of this keyboard.
How could I achieve this?
I use ArchLinux and DWM.
ps:
i found my device and in udev disable it
xinput disable 'AT Translated Set 2 keyboard'

Mohammad Efazati
- 812
7
votes
1 answer
My keyboard generates spurious events
I have an annoying problem using the terminal and I cannot look for a solution on Google because I don't know how to phrase it.
When I have load of text on terminal (for instance after a dmesg) and I try to scroll up to look for the bit of text I…

riskio
- 971
5
votes
0 answers
Why do scancodes and keycodes differ by 8?
I've been working with a keyboard to remap certain keys and create macros etc.
I understand the keyboard (via USB, I'm talking about a desktop computer with a USB keyboard) provides a scancode which dependant on the keyboard, is mapped to key…

Madivad
- 371
5
votes
1 answer
Mimic alt + backspace in iTerm2
I'm trying to figure out how to mimic the alt + backspace behaviour in iTerm2.
(In a Linux virtual terminal that should delete everything before a non alpha character, I guess)
I can send a key sequence, but I don't know what to send. Any ideas how…

daisy
- 54,555
5
votes
2 answers
How to disable onboard (on-screen keyboard) that automatically starts when I log onto my system?
whenever I login to my system (Ubuntu 13.10) onboard (on-screen keyboard) automatically runs. I don't want it to run any more. Why does it run automatically & how to disable it?
Long back as far as I remember, once I manually started onboard. And…

Ravi
- 3,823
4
votes
0 answers
Slow keyboard response in some Distros
I will be quick and clear.
My keyboard is very slow in Gentoo, Debian, Ubuntu, Arch, PCLinuxOS and LinuxMint.
It works fine in Mandriva, Fedora and Sabayon (Gentoo Based)
It is slow even in Gentoo installation; without the Xs, with KDE; Gnome,…

dsocolobsky
- 809
3
votes
0 answers
Caps lock delay problem
With using caps lock for word capitalization, when I type fast using my Linux distro, I get the following:
CAps LOck NOt WOrking PRoperly.
I tried the same keyboard on a windows machine, it works properly. So, the main reason of the problem seems…

Sait
- 343
3
votes
0 answers
Controlling my keyboard's RGB LEDs under Linux
So, I bought a Skiller Mech SGK3 mechanical keyboard. It works perfectly under Linux, but under Windows I can use its software to configure the RGB LED lighting patterns and macros.
How would I do the same under Linux? Running its software under…

Renan
- 17,136
3
votes
1 answer
Reliable Key Swap on Faulty Keyboard
I have a keyboard on which the "P" key does not work but I can't see the point of chucking it away for one defect. I therefore want to map one of the working keys to "P". This has proved a mighty, almost circular, challenge. As is typical in Linux…

Marc
- 412
3
votes
1 answer
Sending key press signals to a background process
I have been learning about daemons and writing them in C. I want to make the daemon receive the global key press signals in Ubuntu, and write the received key-presses to a separate file.
Is there any way that be achieved? If so, how?

Be Wake Pandey
- 131
2
votes
2 answers
How to swap caps-lock and escape keys
I am using
arch kernel 5.7.3-arch1-1, and
openbox, and
neo vim 0.4.3, and
Lenovo thinkpad T430 laptop / keyboard.
All system packages are up to date.
I am trying to swap caps lock and escape keys for use in neoVim and have used this line
setxkbmap…

Kes
- 859
2
votes
0 answers
Making only some modifiers sticky
xkbset sticky
makes all modifiers sticky. Is it possible to make only some modifiers sticky?

Toothrot
- 3,435