Tagged Questions
4
votes
2answers
75 views
How to disable caps-lock, without remapping or disabling it?
I have an X11 program that grabs caps-lock, and uses it. The problem is, I want to disable the regular caps-lock toggling, but doing so seems to disable the key.
So whatever X11 gets for a caps-lock ...
2
votes
1answer
66 views
Laptop keyboard occasionally stops working
I have a dirty solution that is to plug a USB keyboard in and execute the following command:
setxkbmap -rules evdev -layout us -model evdev
Afterward my keyboard will work.
This solution only ...
0
votes
1answer
92 views
Mouse and keyboard not working in FreeBSD 9.0
Could not use keyboard and mouse at KDM log in screen in FreeBSD 9.0 KDE
Typed on nano:
hald_enable="YES"
dbus_enable="YES"
local_startup=${local_startup} /usr/local/kde4/etc/rc.d"
kdm4_enable="YES"
...
1
vote
1answer
186 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 ...
0
votes
0answers
199 views
How to get keyboard input PS/2 scan codes or USB usage codes in a Qt application?
I'm trying to get the PS/2 scan codes or USB usage codes of keyboard keys pressed in a Qt application. I tried overriding QWidget::keyPressEvent() but QKeyEvent::navtiveScanCode() returns a value ...
4
votes
1answer
117 views
Set customized keyboard layout as default
I designed a keyboard layout for myself, after I run xmodmap it works OK, but after standby or reboot, the layout turn back to qwerty.
How can I set it as default? My OS is Debian Wheezy with Xfce4.
...
3
votes
1answer
132 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" ...
9
votes
3answers
2k views
How to get keycodes for xmodmap?
I'm trying to use xmodmap to remap alt/windows keys on Dell L100 keyboard, and have trouble getting the keycodes
For instance, using "xev" doesn't give me keycode for "Alt"
FocusOut event, serial ...
4
votes
1answer
124 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 ...
2
votes
0answers
95 views
xkbcomp doesn't update keymap for running xterms?
When I use setxkbmap all programs use the new layout but when I change the keyboard layout with xkbcomp to my own only newly started programs are affected (using xkbcomp with a file with a default ...
2
votes
1answer
229 views
Setxkbmap turns off NumLock LED - but not NumLock.
Whenever I use setxkbmap in a terminal (or my .bashrc), the next time I press any modifier keys (ctrl, shift, alt) the NumLock LED on my keyboard goes off, but NumLock itself is still active so it's ...
4
votes
2answers
215 views
Custom xkb layout in which one key creates two unicode code points
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 ...
1
vote
1answer
129 views
Map caps to esc for RHEL 5?
I have an older version of RHEL. In newer versions, there is usually an option to map the caps key to the esc key. How would I do this in an old version?
Going to System Preferences -> Keyboard -> ...
1
vote
1answer
186 views
modify keyboard layout locally
I haven't found the correct keyboard layout for my macbook pro yet.
I've found one that looks like it though (in .xinitrc):
setxkbmap -layout us -variant mac
yet this has one difference: the (',~) ...
2
votes
2answers
183 views
Swap alt and windows key except when using an external keyboard
On my laptop the Alt and Windows keys are in the opposite positions that I'd prefer them in. Swapping them is fairly easy. However, my external (USB) keyboard has the Alt and Windows keys in the order ...
5
votes
2answers
243 views
how to deal with keyboard-greedy apps
I'm having a very specific problem, however any help will aid in understanding X's relationship to the keyboard.
I'd like to be able to launch the ElectricSheep program on top of music playing from ...
4
votes
1answer
287 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 ...
3
votes
2answers
636 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...
1
vote
2answers
256 views
How do you configure numpad keys using XKB?
I haven't figured out how you configure XKB to use the numpad yet. I found the following in the "us" file.
partial alphanumeric_keys modifier_keys
xkb_symbols "basic" {
name[Group1]= "USA";
...
0
votes
1answer
866 views
How to use bash control a keyboard
How to use bash command control a Keyboard.
e.g.
what is a command in bash for pressing ctrl+c, ctrl+l, etc..?
6
votes
2answers
449 views
Manipulating X key and pointer grabs on the command line
What command line tools exist to list and manage X server grabs? (That's grab as in key and pointer grabs, i.e. restricting the use of a particular key or mouse button to a particular application, or ...
3
votes
3answers
1k views
how to assign another modifier to Alt key for X11?
Aim:
I would like to assign Alt to CapsLock-key, and Meta to Alt-key. But in such way, Alt-key would no longer be recognized as Alt, and CapsLock-key would no longer be recognized as CapsLock.
...
3
votes
0answers
199 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 ...
7
votes
4answers
1k views
How do I type the degree symbol under X11 (using a default English keyboard layout)?
I'm trying to put in an email the temperature outside in degrees. On my Mac, the degree symbol (°) is Option+Shift+8. But I'm writing the email in Thunderbird on an Ubuntu 10.10 with the default US ...
7
votes
4answers
2k views
Reassign Ctl and Alt keys - xmodmap error
I am attempting to remap my keyboard in order to make emacs usable - my ergonomic keyboard puts its single Control key in an isolated 4-key island way off to the left.
The OS is debian squeeze.
Here ...