Questions tagged [xmodmap]

Xmodmap is a tool found in the xll-xserver-utils-package and it enables keyboard maps and pointer button mappings to be configured according to the user's preference. It is often used to set up custom keys such as launcher or media buttons on a laptop.

Filter by
Sorted by
Tagged with
0
votes
1answer
13 views

Why does `xmodmap` not always load `.Xmodmap` on login?

I've got the following in the file ~/.Xmodmap ! change CapsLock to Escape clear Lock keycode 0x42 = Escape It remaps the CapsLock key to Escape, and works pretty well, when I issue the comman xmodmap ...
0
votes
0answers
33 views

xmodmap fails to clear any modifier

I'm trying to remap my right Windows/Super/Meta/Command key to behave the same as my left Alt key (instead of what it's doing now which I believe is acting as "Super"). I've read a bunch of ...
4
votes
0answers
100 views

Xmodmap and Google Chrome

I just updated from Ubuntu 18.04 LTS to Ubuntu 20.04 LTS, which also updated my Google Chrome. I use Xmodmap to modify some of my keys. The modified keys for navigation — such as Left and Up — no ...
3
votes
0answers
74 views

xmodmap stopped working in the latest Google Chrome update

I remap Insert,Home,Page Up, Delete, End, and Page Down, and it have worked for many years, but with the latest Google Chrome update, it ignores the remapping, and preforms the action if it where were ...
0
votes
0answers
37 views

Changing NumPad keycodes to non-NumPad countertypes?

I have an external keyboard to my laptop which has a NumPad. I want to be able to use both the external keyboard and the built-in keyboard in the same way. However, because the keycodes for the NumPad'...
0
votes
1answer
122 views

Remap a key in Ubuntu 20.04, Wayland

I think I\ve looked all over the whole internet for an answer now, but I can\t find it. I have a keyboard where the tilde key should be mapped to the bar/pipe key. Before Wayland I used this config ➜ ...
1
vote
0answers
59 views

Linux - How to use CAPS LOCK as both a SHIFT and BACKSPACE?

I want to be able to use the caps lock key on my keyboard as a shift key when I am holding it down and as a backspace when I release the key (given that I didn't press any other keys in that interval)....
1
vote
0answers
31 views

How to ignore a specific character input from your keyboard?

My laptop's keyboard has malfunctioned, and so whenever I press spacebar the computer gets input as if I pressed spacebar and page-down at the same time. I tried using xev to figure out which ...
0
votes
0answers
12 views

Arrow Key remapping to other key [duplicate]

My right arrow key stopped working in Ubuntu 18 . Can I map this function into any other key?
2
votes
1answer
57 views

Remap right up arrow to shift does not work as expected

I've read the several questions regarding remapping keys and I found that to remap my right up arrow to a shift key would require: xmodmap -e 'keycode 111 = Shift_R NoSymbol Shift_R' or xmodmap -e '...
0
votes
1answer
41 views

Delete key randomly activating

Whenever I press any of the arrow keys (excluding the up arrow for some reason), it seems to trigger the delete key. Whenever I press any of them, all the characters to the right of my cursor get ...
0
votes
1answer
261 views

How can I get my display back? xmodmap: unable to open display ''

Like so many others, I've been trying to upgrade my OpenGL from 3.0 to 3.2, which was probably a terrible idea to begin with but here we are. Now my Ubuntu partition will not open properly and I'm ...
0
votes
0answers
42 views

How do I disable opening files with the spacebar key in Ubuntu Studio 20.04?

In my Ubuntu Studio 20.04 LTS I need to change / disable the assigned function for the "space-bar" key. This key works like the ENTER key!? Spacebar key opens all files in my computer (dir, mpr3, jpg,...
1
vote
1answer
48 views

Xmodmap: Assign right ctrl to two keys

I'm trying to use right Ctrl to type -> Is that possible? If not, do you know of an easy way to achieve it? Here's the code I tried: keycode 105 = (minus, greater)
1
vote
2answers
69 views

use some other key on the keyboard to replace the non-functioning shift key

this laptop is old and my both shift keys and the caps lock key are no longer working. all the other keys are however still working. i dont know what caused this. maybe it is the layout problem or the ...
2
votes
1answer
87 views

How to temporarily disable aa key on the keyboard after pressing it?

I spilled beer in my mechanical keyboard and ever since it tends to repeat the "a" key whenever I press it (yes, I've cleaned it several times, used aalcohol, etc.). I tried to mitigate this issue ...
2
votes
1answer
470 views

How do I set caps to BOTH control and escape in ubuntu/gnome?

I've seen a few questions about this, but none that answered it to my satisfaction. The question: "I'm on ubuntu-flavored linux. I want to use caps as an escape and a control at the same time. (...
2
votes
2answers
488 views

Remap Keyboard Keys based on what keyboard being used

I have a Dell XPS13 and I'm using a Keychron K2 keyboard. The keyboard layouts are different. Is there a way of mapping different keys on the different keyboards? Either at the same time or some sort ...
0
votes
0answers
89 views

place `xmodmap ~/.Xmodmap` in ~/.xinitrc not work

Tried to place xmodmap ~/.Xmodmap in order that can be read at startup, in ~/.xinitrc , but has no effect at all $ cat ~/.Xmodmap keycode 90 = Tab NoSymbol Tab keycode 104 = KP_Insert NoSymbol ...
1
vote
1answer
260 views

xmodmap keyboard changes stop working after Logout and Login again

I run Lubuntu 19.10. To disable "F11" and "Right-click" on the mouse I use xmodmap. I launch this during startup with the Lubuntu Autostart. For the first login it works fine. After I logout and login ...
1
vote
2answers
1k views

How to disable multimedia keys entirely? 18.04 LTS

I have a fresh vanilla 18.04 LTS install, using gnome-shell 3.28.4. I'm using a wired Apple aluminum keyboard: I would like to use the top-row F-keys as keyboard shortcuts in various end-user ...
1
vote
0answers
39 views

Menu key remaps itself in 16.04

I've gotten some good advice from other answers to the question about how to remap my menu key. The solution I settled on has me setting the following in .bashrc xmodmap -e 'keycode 135 = Hyper_R' ...
0
votes
0answers
36 views

How are X11 modifiers used by modern software?

Recently I set out to make a few keyboard customizations via xmodmap. While the first five rows of the keysym table were reasonably straightforward to understand, I'm finding the modifiers confusing. ...
0
votes
0answers
380 views

Control End/Insert Key behaviour with FnLk without xmodmap

I am trying to achieve the following on my Lenovo x240 (but it probably applies to many other makes and models): Function keys F1 to F12 act as normal (not to control volume, brightness etc) End key ...
0
votes
0answers
414 views

Hacks to get around not being able to remap Fn key

I just got a Razer Blade laptop whose Ctrl key is in the far bottom-left corner of the keyboard with a Fn key just to the right of it. Coming from using Macbooks and Thinkpads, where the position of ...
3
votes
0answers
99 views

Remap Capslock, but keep its function with Ctrl + Capslock

I want to remap my Capslock key to function as left mouse click, Alt+Capslock to function as right mouse click, and Ctrl+Capslock to function as Capslock. I've been using this in Windows with ...
1
vote
0answers
89 views

xmodmap: changing language reset caps/tab swapping

my tab key is broken and i want to swap/remap caps with tab. i follow instruction from How to swap/remap the CAPS LOCK key with Tab key? and write clear Lock keycode 66 = Tab ISO_Left_Tab Tab ...
1
vote
0answers
26 views

Xmodmap key mappings reverting periodically [duplicate]

Possible duplicate of this xmodmap reverting periodically, but since there is no life in there and the "answer field" is just for answers, I have to create a new question. Six years later on Ubuntu 18....
1
vote
0answers
216 views

Running xmodmap when new keyboard is plugged in

When I plug an external keyboard into my laptop (which runs Xubuntu 18.04), I have to run xmodmap ~/.Xmodmap to apply the changes to the second keyboard also. This bothers me. Here is my .Xmodmap: ! ...
2
votes
0answers
65 views

How to get a description of the meaning of the modifier keys (modN) of xmodmap?

I've read the documentation below on xmodmap (and man xmodmap): https://wiki.archlinux.org/index.php/xmodmap#Keymap_table The documentation decribes modifier keys, and how to display the modifier ...
8
votes
3answers
3k views

File ~/.Xmodmap is not sourced on startup in 18.04

I have a custom key mapping in the file ~/.Xmodmap which can be activated by running xmodmap ~/.Xmodmap. However, I want this to happen automatically when I login. I have tried the following without ...
0
votes
0answers
121 views

Map key to a script in Ubuntu 18.04.1

I'm on Ubuntu 18.04.1 Bionic Beaver using an HP Pavilion laptop. My laptop has a key for toggling airplane mode. Using xev, I found out that it has keycode 255. I've saved the following code at /bin/...
1
vote
0answers
114 views

How to map caps + h,j,k,l to arrows with russian lang?

I have xmodmap config: keycode 66 = Mode_switch keysym h = h H Left keysym l = l L Right keysym k = k K Up keysym j = j J Down keysym u = u U Prior keysym i = i I Home keysym o = o O End keysym p = ...
1
vote
1answer
808 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'...
0
votes
2answers
744 views

Why does loading my own ~/.Xmodmap freeze my desktop on 18.04?

I created a modified Xmodmap file in my home directory. When I try to load it with. xmodmap ~/.Xmodmap or on startup, it freezes my desktop for several minutes. It wasn't the case on my Xenial ...
1
vote
1answer
301 views

set CapsLock as Esc, and Ctrl when pressed in combination

I would like to set CapsLock to Esc when pressed alone, but Ctrl when pressed in combination with another key. This is possible in karabiner-Elements for MacOS, but i cant find an easy way to do it ...
2
votes
0answers
233 views

upgrade to 18.04, xmodmap settings reverting periodically and video performance

I have a custom xmodmap config that is called on startup by running xmodmap ~/.xmodmap however it seems every hour or so these settings seem to be reverted to default. I then have to run that command ...
0
votes
1answer
253 views

How remap keyboard on “asciitilde layout mode”

I'm trying currently to use the xmodmap -e function in order to remap my keyboard. I want to replace the twosuperior key with greater and less depend of the asciitilde mode being activated. I talk ...
1
vote
1answer
338 views

How do I “shift” Caps Lock, Shift and Control?

Default key location is +-----------+ | Caps Lock | +-----------+ | L Shift | +-----------+ | L Control | +-----------+ I'd like to try moving the most usually useless key to the farthest position,...
1
vote
1answer
516 views

How to set Level3_Shift to Caps Lock AND Compose to Caps Lock+Ctrl in XFCE?

I switched from SUSE recently, which uses KDE as a default desktop environment. In KDE, it is possible to archieve such a setup with GUI options, but not in XFCE. I've tried set up the ~/.Xmodmap ...
0
votes
0answers
136 views

Change keyboard layout with xmodmap or xbidnkeys

I need to use Numlock to switch between keyboard layouts. Any way to achieve this with Xmodmap or Xbindkeys? I tried setxkbmap -layout but it doesn't seem to provide a "switch between" functionality....
2
votes
0answers
701 views

How can we make setxkbmap and xmodmap work together?

On Lubuntu 18.04, I found the following commands will cancel each other $ setxkbmap -option keypad:pointerkeys $ xmodmap ~/.Xmodmap I would like to be able to fully control my cursor using ...
3
votes
1answer
200 views

Using CapsLocks as backspace

I want to use CapsLock as Backspace. I tried commands below and it works. setxkbmap -option caps:backspace xmodmap -e "clear Lock" But after restarting the computer, I need to type that commands ...
0
votes
0answers
543 views

Why doesn't my substitution of the super key for the Alt_L key not work in all the cases?

On Thinkpad T400, my left Alt key has stopped working. Since I have never used the super key in LXDE in Ubuntu 16.04, I did the following to modify the super key as if it were the left Alt key. First ...
4
votes
1answer
2k views

How to map [Alt] + [hjkl] keys to arrow keys?

I know how to map [AltGr] + [h|j|k|l] keys to arrow keys, like: [AltGr]+[h] ... [Left] [AltGr]+[j] ... [Down] [AltGr]+[k] ... [Up] [AltGr]+[l] ... [Right] [AltGr]+[ö] ... [Home] [AltGr]+[...
1
vote
0answers
31 views

Remap right ctrl to behave like left ctrl? (currently typing stuff like æ ß ¶)

As explained in the title my right control key is behaving oddly. It types characters like æ ß ŋ. I'd like it to simply toggle the control mode, like the left one. I gave xmodmap a shot using the ...
2
votes
1answer
1k views

Remap keys via xmodmap no longer works

I recently switched to Ubuntu 17.10 from Ubuntu 16.04. So far I used xmodmap to remove Caps_Lock and replace it with the backslash-symbol. This doesn't seem to work under 17.10 (maybe because ...
2
votes
1answer
2k views

How to use Mode_switch and xmodmap in current Ubuntu versions?

For years I used the following ~/.Xmodmap file to get german umlauts quickly, e.g. when I press the ALT_R + a I get ä. A nice shortcut compared to using the compose key: keycode 108 = Mode_switch ...
0
votes
1answer
1k views

Disabling numlock in session startup does not work

I am trying to disable my numlock key using the following command numlockx off && xmodmap -e "keycode 77 = """ It works so I wanted to this command to be run automatically at the start of ...
5
votes
1answer
960 views

How to map caps lock to arrow keys?

I am trying to map Caps Lock to the Down arrow key and Caps Lock with a shift modifier to the up arrow key. I've tried using xmodmap with the following input file: remove Lock = Caps_Lock keycode 66 ...

1
2 3 4 5