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
0answers
25 views

Using AltGr + Home/PgUp/PgDown etc. for media keys (US International with AltGr Dead Keys)

For a while I have been using the CODE keyboard shortcuts in which you use the Fn key combined with Insert/Home/PgUp/Delete/End/PgDn in order to control media functions. I would like to do something ...
1
vote
1answer
56 views

Swap some keyboard keys

I would like to swap some keys, like Home and End on my keyboard. I did it using xmodmap, but this gets reverted every time my computer goes to sleep, and some applications, e. g. VSCode don't respect ...
1
vote
0answers
18 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 ...
1
vote
2answers
48 views

How do make Windows key (Super_L) to NOT bring up Search menu?

I would prefer to use Windows key as Super_L in emacs and possibly other apps. However, the key is programmed to bring up Ubuntu Search Apps menu. Is there any way to disable this shortcut, in other ...
0
votes
1answer
143 views

Bind alt + wasd to arrow keys

I tried what the OP did in How to map [Alt] + [hjkl] keys to arrow keys? and faced the same issue. The only answer did not work. Any suggestions?
0
votes
0answers
26 views

The right key of my laptop keyboard has malfunctioned. I want to disable it. xmodmap is deprecated, help needed in writing a xkb script

I am using an Ubuntu 20.04.02 machine. I was using xmodmap to disable the right key, and make my pgdn key as my right key. Below is the code for that. 117 is the keycode for PgDn, and 114 is keycode ...
0
votes
0answers
172 views

How to disable Page Up (Next) and Page Down (Prior) Keys

I ran xev and got te keycode for these two keys on my keyboard 117 and 112. I then run xmodmap -e "keycode 112=" and xmodmap -e "keycode 117=". Sure enough the xev output for these ...
0
votes
0answers
41 views

One of the media keys( next track ) is stuck and is making the keyboard useless. I want to disable it but I'm not getting the keycode using xev

The next track key is stuck and the screen is continously showing not allowed sign. None of the other keys work when this key gets pressed automatically I want to disable this particular key but I'm ...
0
votes
1answer
88 views

Remap Caps Lock key to Ctrl+Y or other key

I am trying to remap my caps lock key to a new key combination like ctrl+b for using tmux. I spent hours googling but all explanations are just cryptic or only cover remapping a key to only a single ...
0
votes
0answers
58 views

xmodmap locking MATE desktop

20.10 with MATE desktop up to date as of today. I want to disable one of the special keys on my keyboard. The calculator button is positioned where I will too often press it while picking up the ...
0
votes
0answers
130 views

Change Hyper key from mod 4 to mod 3

Is there any way to change this permanently? I do it with an xmodmap script but I have to run it every time I boot my device (Ubuntu 20.04) and I want to find a way to do it permanently
2
votes
1answer
146 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 ...
1
vote
0answers
46 views

xmodmap Mode_switch for different layouts

I need to add the same "Mode_switch layer" triggered by Caps_Lock for both layouts: EN and RU. Specifically, both Caps_Lock + h and Capd_Lock + р (Cyrillic_er) should lead to Left; both ...
1
vote
0answers
25 views

Making a Lock Key with Xmodmap

How do I create a "lock" or "sticky" key in Xmodmap – such as Caps_Lock? Currently, I am using a dead-Greek key, but I would also like a key that locks my keyboard into Greek until ...
0
votes
1answer
62 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 ...
1
vote
0answers
237 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 ...
5
votes
1answer
264 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
137 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'...
3
votes
1answer
1k 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
1answer
261 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
86 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 ...
2
votes
1answer
204 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 '...
1
vote
1answer
1k 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 ...
1
vote
1answer
77 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
118 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 ...
5
votes
2answers
1k views

How can I remap my keyboard to create a lefthand numpad?

Like many smaller machines, my laptop's keyboard is missing a dedicated numpad. I can generally type without looking at my keyboard, but I am unable to blindly type numbers with the number row. That's ...
2
votes
1answer
258 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
2answers
1k 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
2k 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 ...
1
vote
1answer
458 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 ...
3
votes
2answers
3k 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
52 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' ...
4
votes
0answers
121 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
168 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
27 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
527 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
97 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 ...
11
votes
3answers
4k 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
153 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
210 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
1k 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'...
1
vote
2answers
1k 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 ...
2
votes
2answers
543 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
242 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
306 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
449 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
741 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
190 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
865 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
287 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 ...

1
2 3 4 5