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
0 votes
0 answers
20 views

How can I remap a key that triggers multiple events?

I recently bought a small folding keyboard that has a .com key (which I never use) but doesn't have a del(ete) key which I use a lot. Using xev I see that pressing .com triggers a bunch of events: ...
B. Keith's user avatar
2 votes
1 answer
217 views

How to permanently remap Caps Lock into Esc key on Ubuntu 22.04.3 with Wayland display server

My goal is to PERMANENTLY remap CAPSLOCK into ESC key under Ubuntu 22.04.3 with Wayland display server. Second requirement is to do it without installing additional software. I need it for VIM, to be ...
michal roesler's user avatar
2 votes
1 answer
140 views

Remap tmux prefix shortcut of control b

I tried to remap tmux prefix shortcut from control b to control / by unbind-key C-b set-option -g prefix C-/ bind-key C-/ send-prefix but not fulfill the expectation, how is the correct way to ...
HELP ME's user avatar
  • 191
0 votes
1 answer
22 views

Using dconf write or gsettings set several times overwrite the previous command

I would like to remap several different keys of my keyboard.Namely: I want to remap caps Lock to escape function and remap left alt to right alt function. For this I used the following commands: dconf ...
ecjb's user avatar
  • 111
0 votes
0 answers
43 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
0 votes
1 answer
96 views

How to remap (only) mouse keys? (special case)

I've remapped some mouse keys to help me navigate in firefox, later I'll extend the use to other applications. In particular, I remapped button 4 of the mouse so that the active web page scrolls up at ...
CaneRandagio's user avatar
0 votes
0 answers
113 views

Remapping of key with xmodmap is detected by xev but not by other apps?

So as I bought a laptop with a foreign keyboard (qwerty but I type in azerty most of the time) I don't have any dedicated key for chevrons (<>). That's annoying, so I want to remap my right ...
rznrd's user avatar
  • 1
3 votes
2 answers
109 views

How to make a keyboard shorcuts using 'windows/super' + 'alt' + letter

I'm trying to make keyboard shortcuts using Super+alt+something, the problem is that Super+alt sometimes behaves as just Super making shorcuts as Super+alt+L same as Super+L. but even worst, when I ...
Pablo Ruiz's user avatar
1 vote
1 answer
34 views

Remap Ctrl+, and Ctrl+. to Ctrl+C and Ctrl+V

Can I somehow define a remapping where F12 toggles a new layer in which Ctrl+, acts as Ctrl+c and Ctrl+. acts as Ctrl+v?
Rasmus's user avatar
  • 8,125
0 votes
0 answers
133 views

How to trigger `Fn` key when CTRL, ALT or SHIFT are pressed?

I want to avoid pressing the Fn key as much as possible. It's fine pressing only Fn + F.. but it's annoying when is a combination involving 3 or more keys. E.g. I want to press Alt + F2 instead of Alt ...
Kamafeather's user avatar
1 vote
1 answer
156 views

reassigning 'Tab' key to 'insert' key

Background: I am running Ubuntu 22.04.1 LTS. I am new to Linux. I do not have a programming or computer science background. Problem: I am trying to reassign the function of 'Tab' to the 'Insert' key ...
PGN's user avatar
  • 11
1 vote
1 answer
66 views

How to change keyboard layout by switching 1234567890 with !@#$%^&*() with Shift or Num Lock keys?

What I would like to do is, instead of pressing Shift+1 or Shift+2 to see ! or @ respectively, have by default ! @ # $ % ^ & * ( ) instead of 1 2 3 4 5 6 7 8 9 0, and maybe if I have my NumLock ...
Jonadabe's user avatar
0 votes
0 answers
92 views

How to map special key combination to SIGINT with stty

I understand that stty intr ^C (which is also the default) sets CTRL+C to send an interrupt to a process. I would like to understand how to send other combinations that are not only CTRL plus a key (e....
user3407546's user avatar
0 votes
1 answer
33 views

How to remap Caps Lock to letter key, such as "a"

There are many questions on here about remapping Caps Lock to another special key, such as Ctrl or Esc. However, I want to map Caps Lock to the A key. (My keyboard's physical A key broke, so when I ...
tscizzle's user avatar
  • 113
1 vote
0 answers
65 views

Swap vert & horiz scrolling: remapping buttons has no effect

My mouse has a vertical and horizontal scroll wheel. I would like to swap them so that the original vertical wheel controls horizontal scrolling and vice versa. So far: I have used xev to identify ...
Mehmet Karatay's user avatar
0 votes
0 answers
421 views

How to change mouse button assignments using libinput

So, before 22.04, I was able to reprogram my Kensington 4-button mouse using xinput. Now under Wayland, I can get the information from libinput, but I see no way to remap the buttons. Here is the ...
JMorgan's user avatar
0 votes
0 answers
137 views

xmodmap remappings not working correctly in all applications

I remapped some of my keys using a Mode_switch with the following .Xmodmap ! remove Caps Lock clear lock clear mod1 remove Lock = Caps_Lock remove Shift = Caps_Lock keycode 66 = Alt_L Meta_L Escape ...
AstanVizu's user avatar
0 votes
1 answer
53 views

why doesn't my map command work in vi/ex?

I'm just learning how to use the vi editor, and was trying to make use of the following map command in my .exrc file: map K 0I^I^[j0O^I^[j0 That is what appeared when I created the map in ex mode and ...
user1013210's user avatar
0 votes
1 answer
91 views

How can I remap Home to F5 and End to F11?

I've edited the /use/share/X11/xkd/pc file to remap some keys, but I can't quite figure out how to assign Home and End to F5 and F11. Any assists?
Costa Michailidis's user avatar
3 votes
2 answers
502 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,084
1 vote
1 answer
214 views

Custom keyboard shortcuts keypresses

I'm looking for a solution to map keyboard shortcuts to keypresses in a gnome DE. In scope of this question I'll use the example of mapping meta+2 to F2. It doesn't seem to work with xdotool. E.g., ...
tenxsoydev's user avatar
5 votes
0 answers
1k views

Mapping Left `Ctrl` and `fn` keys in Ubuntu 20.04.4 LTS

So I've spent a solid couple of hours trying to figure out how to remap a couple of keys on a Lenovo ThinkPad T440p laptop. This article from 2020 got me pretty close. It uses the xmodmap command to ...
Kevin Flowers Jr's user avatar
0 votes
2 answers
902 views

Remapping Keyboard Keys to mouse buttons on Ubuntu 18.04

I would like to use keyboard buttons for left and right mouse clicks. I found this answer that describes remapping mouse buttons to keyboard keys. Can I use this method 'in reverse' to map keyboard ...
drydwy's user avatar
  • 1
0 votes
2 answers
526 views

How to remap escape, tilde, and quotes on 21.10 with xkb options

I would like to swap the backtick/tilde key with escape and also single and double quotes by creating new options to be picked up. I already have caps lock and left control swapped as well as parens ...
JasonN's user avatar
  • 123
0 votes
0 answers
113 views

Key chords via xmodmap in 20.04

On macos I use a fabulous tool, Karabiner Elements, to obtain the ability to use the return key as a control modifier key when typed with another key. Same for the caps lock key. Now that I am moving ...
pajato0's user avatar
  • 111
0 votes
0 answers
124 views

Remap Logitech T400 middle click

I have a Logitech T400. This mouse has two "middle click buttons": Button A is mapped to the regular middle click, which is what I want. But button B is mapped to Super L which is useless, ...
user171780's user avatar
0 votes
1 answer
137 views

Xubuntu change/remap `home` key to backspace

I want to remap the home key to do the same as the backspace. I have looked through this page, but couldn't find any references to the home key in the file it talks about, but maybe I am looking in ...
Joshua Anderson's user avatar
0 votes
0 answers
113 views

Mapping multi-key shortcut involving Super_L in Ubuntu 20.04

I recently moved from Mac as my primary workstation to Ubuntu. And it has been a struggle... which I found to be surprising because before moving to Mac (5 years ago) I was on Ubuntu for a decent ...
Chantz's user avatar
  • 423
5 votes
2 answers
327 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
  • 2,987
2 votes
1 answer
96 views

How to write a keyboard symbol, e.g. "~", with a key combination, e.g. CTRL+FN+`?

My 1 key broke and I just used the key-mapper program to move this key to the one on the left (the ~ key). Or in other words - I remapped the ~ key to take the functionality of 1. My problem now is ...
NeStack's user avatar
  • 275
2 votes
0 answers
123 views

How to remap symbols on the right shift key (for all layouts)?

My alphanumerical key for '1' and '!' (the very left of the number keys) broke. So, I edited, against the advice in some articles, the file /usr/share/X11/xkb/symbols/us and remapped the '1' and '!' ...
NeStack's user avatar
  • 275
1 vote
0 answers
60 views

Map Right Alt to Spacebar including in key combinations

I am working on a laptop with a broken spacebar, so I re-mapped the right alt key to the spacebar with: xmodmap -e "keysym Alt_R = space" This works well, except it seems like the right alt ...
Amadou Kone's user avatar
3 votes
1 answer
299 views

How to remap the key combination to change to the next tab in my browser (Ubuntu 21.10)?

I’m using Ubuntu 21.10 I want to change the key command used to switch browser tabs to mimic what I do on Mac (Alt+Shift+⇠ / ⇢), instead of Ctrl+Tab or Ctrl+Shift+Tab. The documentation suggests this ...
omegazoomwitch's user avatar
1 vote
0 answers
194 views

How to persistently map Capslock to ESC and Ctrl so that it still works after suspend/resume

I'm using the following lines in my ~/.xprofile on Ubuntu 20.04 to map Capslock to ESC and Ctrl: # make CapsLock behave like Ctrl: setxkbmap -option ctrl:nocaps # make ...
Wolfson's user avatar
  • 189
7 votes
1 answer
3k 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,125
0 votes
0 answers
100 views

ranger replace space in filenames

I made map for moving file to Downloads directory but it cause problem if file has space map dD console shell mv %s /home/${USER}/Downloads Ofc I know that I can give their "" but it will ...
Simon Hryszko's user avatar
1 vote
0 answers
46 views

Why doesn’t this key remapping work in several GNOME applications?

I’d like to remap ] to Delete. I’ve tried setting this in an XKB layout: key <AD12> { [ Delete ] }; This works in Firefox, GNOME Terminal, and LibreOffice. However, nothing happens when I press ...
ændrük's user avatar
  • 75.7k
2 votes
1 answer
1k views

Remap "special" Keys on HP keyboard

I bought a new HP notebook (elitebook) with an extremely awful keyboard functionality. For example, I don't have an insert key, but I have a phone-dial and phone-hangup key (right upper corner): The ...
JJ Abrams's user avatar
  • 275
0 votes
1 answer
36 views

Simple Keyboard Remap Question

I want to use my Caps Lock key as Super+A key, but remapping solutions that I found do not support the feature. Do you know how to command something by pressing the specific key?
Shawn's user avatar
  • 13
1 vote
1 answer
2k views

Laptop Fn key code for bindsym in i3wm

I am using i3wm with ubuntu 20.04. I would like to Fn+Left/Right work as End/Home like in my previous laptop. I know how to make bindsyn in i3wm config but I cannot find Fn code. I used xev but it ...
Simon Hryszko's user avatar
1 vote
1 answer
748 views

map Apple keyboard EJECT key to delete on Ubuntu 20.04

followed this great instruction https://askubuntu.com/a/1019659/786192 but it didn't work for me. I then took a more aggressive approach and edited /lib/udev/hwdb.d/60-keyboard.hwdb directly by ...
Bo Chen's user avatar
  • 183
3 votes
1 answer
169 views

Key remapping reversal coupled to built-in device disconnection

I have 3 keyboard languages in my Ubuntu 20. A key < > needs to be corrected by: xmodmap -e "keycode 94 = less greater" As far as I remember having Ubuntu 19 need not further steps. ...
Ferroao's user avatar
  • 791
2 votes
0 answers
158 views

How to remap Menu key to Super?

I'm running Ubuntu MATE 20.04 on an old Toshiba Satellite that has a menu key instead of a second Windows/Super key, and I'd like to remap it so that it functions as Super. So far, I've tried xev | ...
James W.'s user avatar
0 votes
1 answer
992 views

My system only see 8Gb instead of 12Gb memory, can you help me please?

Help me please! I have a MSI H55M-P31 motherboard with an i7 870 @ 2.93 GHz processor. Both of them supports memory up to 16Gb. I have installed 2x4Gb and 2x2Gb. My system only see 8Gb total, the ...
makako's user avatar
  • 1
1 vote
1 answer
115 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
2 votes
1 answer
332 views

Swapping CapsLock key for hyper

i tried doing this by running a .Xmodmap script at startup but it just doesn't work, I've seen a lot of threads with people (maybe) fixing it, but i just can't! I've also seen some threads about using ...
Anonimeishon's user avatar
0 votes
1 answer
419 views

No 'Super Key' on IBM Model M keyboard

So I have a IBM Model M keyboard because it is just the best keyboard ever manufactured.... Thus being said I have no 'Super key'. So I am missing a lot basic functionality. So my question is, how do ...
TheXed's user avatar
  • 26k
4 votes
1 answer
2k views

20.04 - Map right Alt key as Menu key

Ubuntu 20.04.1, Gnome 3.36.3, XOrg 7.7, fresh install on an HP laptop computer (17-by1xxx). This laptop keyboard does not have a Menu key (ie. a key that activates a context menu in an application - ...
Tracy's user avatar
  • 397
2 votes
1 answer
124 views

Mapping Super+Left to Home in xkb config file

I have following file in /usr/share/X11/xkb/symbols/uscz and I want to remap Super+Left combination to Home button and Super+Right to End. Is it possible? default partial alphanumeric_keys ...
krtek's user avatar
  • 21
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