1
vote
1answer
51 views

Why do these xte commands work in terminal, but not when bound with xbindkeys?

This xte command, when I run it in a terminal, triggers Expo mode: xte 'keydown Super_L' 'key S' 'keyup Super_L' However, when I put this in my .xbindkeysrc file: "xte 'keydown Super_L' 'key S' ...
2
votes
0answers
89 views

How to restart X server with the old key combination (ctrl -alt - backspace) in 14.04 [duplicate]

I know that since 11.04 the keyboard short-cut of Ctrl+Alt+Backspace has been disabled by default. However at least as recently as 12.04 you were able to enable it via the Keyboard GUI: The ...
1
vote
1answer
199 views

Trying to remap PrtSc key in laptop, no keycode

I'm trying to remap PrtSc key to Insert (to use it in vim), with /usr/bin/xmodmap -e "keycode XXX = Insert" for it, I need to figure out what keycode for PrtSc is. I'm doing xev -event keyboard and ...
0
votes
1answer
180 views

xbindkeys slow on Ubuntu 13.10

I am using Ubuntu 13.10 64 bit on an Intel 15 with 4GB of RAM. I used xbindkeys for custom keyboard shortcuts in Ubuntu 13.04 because it was easy to configure with the GUI xbindkeys-config. Now I ...
2
votes
1answer
429 views

After swapping ctrl and caps in xmodmap, how can I make ctrl work properly for multi-modifier combinations?

I've swapped left ctrl and caps lock by creating ~/.Xmodmap keycode 66 = Control_L keycode 37 = Caps_Lock clear Lock clear Control add Lock = Caps_Lock add Control = Control_L Control_R then ...
2
votes
0answers
54 views

How can I determine what command a given keybinding is invoking?

The key chord WinKey-p (hold down the right WinKey and press "p") causes my monitor configuration to cycle through some very strange and suboptimal settings. It seems that whatever is causing this ...
6
votes
1answer
226 views

Map function+backspace to delete

I'm used to Apple laptops, on which Function + Backspace is mapped to Delete. I'm also okay with Shift + Backspace. Is there a way to obtain this? Note, I'm using Xmonad and have some keyboard ...
2
votes
1answer
696 views

Remap function keys to commands?

I'm running Ubuntu 12.04 on a Samsung Series 9 (900X3A-A03), and changing the brightness through the function keys or the brightness control UI causes flickering and general instability, so I have a ...
23
votes
1answer
7k views

I accidentally hit Ctl Alt F<num>. How do I return to the GUI?

I'm using 12.04, I accidentally used Ctl-Alt-F9 and got a black full screen with command line cursor (Terminal). How can I go back to the normal Unity screen?
2
votes
1answer
121 views

Why is Shift+Backpace logging me out?

Ever since my update to 12.04, Shift+Backspace ends my X Session/Logs me out. How can I stop this?
0
votes
1answer
393 views

dead keys not working in java app

The Arduino IDE is based on a java application called processing. While typing text into processing, it refuses to accept any of the characters under dead keys like " ' ^. As a work around I: Open ...
3
votes
1answer
1k views

Remapping the AltGr key to Control with setxkbmap

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... I also tried ...
3
votes
2answers
726 views

How to map CTRL+q key press to CTRL+c event?

How can the Ctrl+Q key combination be mapped to the Ctrl+C event? My keyboard is mapped to programmer-dvorak and I would like to have the Ctrl+X , Ctrl+C and Ctrl+V events to be mapped to Ctrl+' , ...
9
votes
2answers
1k views

Application-specific key combination remapping?

I'm aware of a number of ways of remapping key combinations in Ubuntu on a global basis (e.g., globally remapping Ctrl+S to send Ctrl+D or something), such as the xbindkeys application. What I need, ...
1
vote
1answer
183 views

What X keysym to use for rfkill / flight mode?

On my laptop Fn+F12 toggles flight mode in windows. I'd like the same functionality in Linux and am looking for the appropriate X keysym that will invoke the equivalent of rfkill block all when mapped ...
2
votes
1answer
765 views

How to intercept all keystrokes

First of all, I don't expect that something like this already exists, but I am interested in knowing how something like this would be accomplished. I want a program that I can have running in the ...
1
vote
0answers
187 views

How to bind to ctrl+alt+plus? [closed]

I would like to bind volume up/down to Ctrl+Alt++ and -, but AFAIK the X server catches those key combinations and uses them for resolution change. Now when I press Ctrl+Alt++ or -, nothing happens, ...
3
votes
1answer
174 views

Why does alt+left shift my virtual terminal left one?

Normally I use alt+left key combo to go back one click in firefox but recently I noticed it's moving to vt6 instead. alt+right moves in the other direction among the vt screens. This is supposed to be ...
2
votes
1answer
1k views

keyboard shortcut to switch focus between separate X screens?

I'm using XFCE on a dual monitor setup, with Xorg configured to separate X screens (neither twinview nor cinerama is working on GF470 with latest nvidia drivers). I'm not using xrandr. Suppose I ...
30
votes
7answers
17k views

How do I remap the caps lock key?

In the past the past I used to use xmodmap to prevent the Caps Lock button from working, and then tell Launchy to handle the key press instead. I can't seem to do this anymore. What is the best way ...
13
votes
1answer
2k views

Multiple keyboards with different layouts

I have ubuntu (11.04) running on a recent macbook pro. I use both the built in keyboard and an external keyboard. I want to remap capslock on both keyboards to super, and I want to swap left-alt (mac ...
123
votes
6answers
87k views

How do I remap certain keys or devices?

I'm searching for a way to remap certain keys in ubuntu. i.e. I'd like to change PgUp to Home or PgDown to End. Does a built-in command or a tool exist reassign keys in Ubuntu/GNOME?
4
votes
3answers
3k views

Binding mouse buttons to copy and paste

Often I'm copying and pasting pieces of text. I'd like to streamline the process. Anyone know if it possible to bind (for example): Ctrl Right Click to Copy and Alt Right Click to Paste
7
votes
2answers
1k views

Map caps-lock key to middle mouse click

Since I rarely use caps-lock, I'd like to map the key to a middle mouse click instead. I would also like to map Alt+Caps Lock to the original function of the caps lock key, should I ever need it. I ...
13
votes
5answers
3k views

How can I map a character to a key combination?

I'm a bit of a fan of the interrobang (‽), but it obviously is not on my keyboard. How can I map that character to a key combination?