Questions tagged [remapping]

Remapping the keyboard so that a certain key or key combination will execute some other key or combination.

Filter by
Sorted by
Tagged with
7 votes
1 answer
4k views

Remap a key combination to another combination, e.g. AltGr+C -> Ctrl+C, under Wayland

TL;DR Under Wayland, can I somehow bind AltGr + C to Ctrl + C? Details I basically want to ask this question, but for GNOME on Wayland. This means that answers involving AutoKey and xbindkeys wont ...
Rasmus's user avatar
  • 8,375
8 votes
3 answers
2k views

Caps-lock remapping stops working

I have caps-lock key remapped to control, which usually works fine, but after some uptime and one/more suspend/awake cycles* this mapping breaks, and caps-lock reverts back to the default behavior -- ...
Attilio's user avatar
  • 231
11 votes
2 answers
8k views

How can I remap the Caps Lock key to be Shift Lock?

I would like Caps Lock to behave as if it were Shift Lock - so when you have Shift Lock on and press 1, it gives !. I am using GNOME, but if I can use a package for another DE on GNOME, I'm happy to ...
Tim's user avatar
  • 32.9k
3 votes
1 answer
4k views

Fake key code for remapped keyboard keys

I have remapped my caps lock to backspace. /etc/default/keyboard XKBLAYOUT="us" XKBVARIANT="altgr-intl" BACKSPACE="guess" XKBOPTIONS="caps:backspace" This works pretty great, except that it doesn’t ...
Remco Haszing's user avatar
7 votes
1 answer
2k views

Changes with xinput randomly revert back to default

I'm using Kubuntu 16.04 (xenial) on a laptop with an ELAN Touchscreen together with a DELL 750-AAHC active stylus. One of the buttons on the stylus behaves as a mouse middle-button, and I want it to ...
Ratler's user avatar
  • 528
4 votes
2 answers
279 views

Map "Super+ArrowDown" to minimize a window while the window is focused & the window is not in fullscreen

I would like to add a conditional key mapping to Ubuntu 19.10. Normally when a window is in full screen mode and you press super+arrowDown it enters window mode (or whatever it is called). When a ...
baxbear's user avatar
  • 182
3 votes
2 answers
793 views

Turn Caps Lock key into delete key

Using Kubuntu on a Macbook there is no delete key. Delete can be done with Backspace+Fn, but there is only one Fn on the farthest corner from Backspace, so that a delete action requires both hands. I ...
cipricus's user avatar
  • 3,454
13 votes
1 answer
13k views

How to remap keys in Ubuntu 18.04 (GNOME Shell)

Trying to swap PgUp and PgDn to Home and End. xmodmap doesn't seem to work for anything other than xev output. Doesn't work in other cases.
Costa Michailidis's user avatar
12 votes
1 answer
4k views

ButtonMapping - Positional parameters

In an X configuration file mouse buttons can be mapped using a ButtonMapping option: Section "InputClass" # ... Option "ButtonMapping" "1 9 3 4 5 6 7 8 2" # ... EndSection Changing the ...
Dave Jarvis's user avatar
8 votes
1 answer
2k views

Remap a button from my gaming mouse to a keyboard key

I just installed ubuntu 18 on my PC and id like to know if there's a tool to remap my mouse side buttons to work as they were a key from keyboard. I used to use X-Mouse Button Controll on Windows but ...
Edmilson Gonçalves's user avatar
7 votes
3 answers
1k views

How to remap a key when it's pressed twice?

Some of my keyboard keys has gone, so I’m trying to program the other keys that are still working to press the damaged keys when I press them twice. Is that possible? Is there any program that can ...
demashqi's user avatar
7 votes
3 answers
3k views

How do I correct this mismapped stylus button?

I'm running Kubuntu 15.10 on an HP Spectre x360, which has a non-Wacom active digitizer built into the display. I'm using a two-button stylus with this, but the second button doesn't work. I couldn't ...
8675Thr's user avatar
  • 81
6 votes
4 answers
4k views

How do I remap the caps lock key to the backspace key?

I have grown very comfortable to my Colemak keyboard layout (my typing speed has doubled since I started using it). My only problem with it is that there is no caps lock key because under this layout ...
Blender's user avatar
  • 133
6 votes
2 answers
3k views

How to Remap NUMLOCK Key to be DELETE?

Because of the layout of my keyboard, I want to have numlock permanently pressed and use the numlock key as a delete key. I can't seem to get this to work. Any ideas on how to do this would be ...
Michael Sobrepera's user avatar
5 votes
2 answers
359 views

Hyper-key u --> Like Arrow-Up

I made CapsLock the Hyper-key via gnome-tweaks Sorry, I have only the german screenshot. "Feststelltaste" means "CapsLock" Now I would like to map Hyper-u to Arrow-Up Hyper-n to ...
guettli's user avatar
  • 1,787
4 votes
1 answer
2k views

How to map right/left click scroll down/up to F1 F2 F3 F4?

I want to map, remap or create a shortcut that: F1 : Right click F2 : Left click F3 : Scroll Down F4 : Scroll Up
Vitor Abella's user avatar
  • 7,537
3 votes
2 answers
1k views

How to set F3 F4 and F6 to copy, paste and cut?

I would like to remap or to create a shortcut for F3, F4 and F6 to copy cut and paste. Using Ubuntu 22.04
Vitor Abella's user avatar
  • 7,537
3 votes
1 answer
1k views

How to use Caps Lock as Enter in 14.04?

After extensive search, I've only found guides to remap/swap Caps Lock to something like Control. However, I am trying to make Caps Lock another Enter (to be precise, I want it for one-handed 'Run' in ...
Kees Mulder's user avatar
2 votes
1 answer
907 views

How to map the AltGr key to the Menu key?

On my Lenevo T460 laptop keyboard, I'd like to change the value of the AltGr key (between Space & PrtSc) to the Menu key as that is far more applicable for my use. So far, I've managed to ...
Rishav's user avatar
  • 43
2 votes
1 answer
1k views

Problems with remapping Shift with Up keys

I recently acquired a Lenovo 510-15 and using Right shift proves to be very bothersome, because of the terrible layout: So I tried to remap Right shift and Up keys, by running these commands: xmodmap ...
Stormwaker's user avatar
1 vote
1 answer
377 views

remapping k to the right shift button

I have been looking on askubuntu for help, but couldn't find the help I needed, so now I just ask. My k key doesn't work, when pressed, and since its a older laptop, i just wish to remap the k key ...
Rasmus Nielsen's user avatar
1 vote
1 answer
1k views

Mapping the extra mouse buttons to page up and page down

I am trying to map the extra mouse buttons to PgUp PgDn using xbindkeys. I found their button # using xev ButtonRelease event, serial 25, synthetic NO, window 0x4000001, root 0x191, subw 0x0, ...
Prasanth Ganesan's user avatar
1 vote
1 answer
153 views

Broke one letter key of my laptop's keyboard and want to remap it on the right Window's key

Some days ago I accidentally spilled some soda on my laptop and broke one of the keys, specifically the letter 'v'. The computer isn't actually mine so I'm ordering another replacement to the keyboard ...
Figaro's user avatar
  • 143
1 vote
1 answer
2k views

How to map a key to work like mouse button including its modifiers?

With xmodmap I can map F2 to work as left click: xmodmap -e "keycode 68 = Pointer_Button1" However, when I use shift+F2 to simulate shift left-click to select files on nautilus for example, it doesn'...
Vitor Abella's user avatar
  • 7,537
0 votes
0 answers
92 views

Remap several key: Alt_L key to have the same behavior as Alt_R (or Alt gr) + remap caps lock to escape

I want to change the behavior of the Alt_L key on my keyboard (keycode 64) so that it has the same behavior as the Alt_R (keycode 108 or Alt gr) on Ubuntu 22.04. the output of the following command ...
ecjb's user avatar
  • 111