Questions tagged [xmodmap]

xmodmap is a tool for manipulating keymaps and pointer button mappings in the Xorg environment.

Filter by
Sorted by
Tagged with
0
votes
0answers
25 views

`setxkbmap` doesn't alter modifier map

I'm able to successfully update my keymap using this: /usr/bin/setxkbmap -option "ctrl:swapcaps" This doesn't seem to change my modifier map. [OP@localhost ~]$ xmodmap xmodmap: up to 4 ...
0
votes
0answers
27 views

Fedora 32 - remap CAPS_LOCK to SHIFT_L on autostart

I simply want to remap my "Caps-Lock" key to "left Shift" on autostart. As I am new on linux I digged through the internet and found xmodmap So I created a .Xmodmap file with ...
0
votes
0answers
19 views

Xmodmap not remapping mouse buttons

My .Xmodmap file contains this line: keycode 115 = Pointer_Button1. I used Xev to confirm that 115 is the end key on my keyboard. When I press the end key on my keyboard, everything works as usual (...
1
vote
1answer
33 views

xmodmap not working with AltGr and arrow keys

I have an us altgr-intl layout. with this command : >_xmodmap -e "keycode 113 = Left NoSymbol U21BC NoSymbol U21BC U21BC U21BC" (Or just 6 combinations, I tried many things ...) AltGr+← still ...
0
votes
1answer
40 views

Xmodmap: Remapped Home key works, but not Shift+Home

I'm using xmodmap (in Linux Mint 19.3) to remap the physical PrintScr & Insert keys to Home & End (because the keyboard's actual Home & End are secondary functions under the arrow keys, ...
0
votes
1answer
42 views

How to set Alt_L to Ctrl_L in xmodmap?

I can swap Alt_L and Ctrl_L with the following config remove control = Control_L remove mod1 = Alt_L keycode 37 = Alt_L Meta_L Alt_L Meta_L keycode 64 = Control_L NoSymbol Control_L add control = ...
0
votes
0answers
13 views

AltGR xmodmap simplified example [duplicate]

What is a simplified example with xmodmap to have AltGr similar to windows? clear Mod1 keysym Alt_R = Alt_R add Mod1 = Alt_L Alt_R keycode 56 = x X x X f F I assumed this would work but it does not.
0
votes
1answer
48 views

How to keep xmodmap after suspend

I have an xmodmap file ~/.Xmodmap and it works perfectly. I put it in the startup applications app in ubuntu 19.10 like this xmodmap /home/yasser/.Xmodmap and it works when first booting up. However, ...
0
votes
1answer
18 views

Simultaneous keystrokes - emulating mouse movements with keyboard

I'm trying to emulate mouse movements and actions with keyboard, and I succeeded in remapping everything (e.g.: hjkl to movements), with xkb (in particular using xkbset -m) and xmodmap. The problem ...
1
vote
1answer
68 views

X11: swap keyboard key with mouse button

I want my Menu key on the keyboard (Keycode 135) to do the same as my right mouse button. https://superuser.com/questions/336674/emulating-mouse-click-with-a-keyboard does that but it sacrifices the ...
0
votes
0answers
27 views

How to make a board key act like the right mouse key?

As most keyboard these days come with no Menu-key it would be nice to set a key to the operation of the right mouse button. So far I still have to select text. How could I get the board key act like ...
1
vote
0answers
24 views

Xmodmap resets after a while

I'm using Arch Linux with KDE Plasma 5. I run autostart-script below to use Korean in my os but after a while(I don't know what causes this) Xmodmap resets so I have to rerun script below to use ...
0
votes
1answer
78 views

How can I disable Caps Lock in a simple way under X11 when there is no key binding for it?

I routinely disable Caps Lock and the respective modifier with a script, using xmodmap. That all works fine. Sometimes, however, for some reason unknown, Caps Lock is active. Having no key bound to ...
0
votes
0answers
34 views

mapping backslash to modifier with xcape preserving pipe character

My keyboard has a backslash key which when shifted is a pipe character. I want to map it in xorg to a Hyper modifier when held, and its default behaviour when pressed. I have added the following ...
1
vote
0answers
55 views

xmodmap: attach Alt_R to Mod3 group

I'd like to bind a particular i3 action to Alt_R+space without it affecting Alt_L+space. Both Alt keys are attached to the Mod1 modifier group: $ xmodmap -pm | grep mod1 mod1 Alt_L (0x40), ...
2
votes
1answer
165 views

Xbinkeys does not work with mode_switch

I'm trying to use xbindkeys with an event that is produced with mode_switch + <key>, but xbindkeys is triggered with only the <key> instead of the combination of it with the mode_switch. ...
0
votes
0answers
33 views

How to make sure a keycode is unused and does nothing?

I use bspwm and want to be able to move stacked windows with mouse without having to press pointer_modifier. The only workaround I can think to this is make a unused key be constantly pressed, and ...
0
votes
0answers
221 views

xmodmap super key not detected by sxhkd

I am using bspwm. My keyboard has the super key too near to altgr and when trying to write a "{" I often accidentally switch to the 7th workspace, so I thought it'd be best to swap super key with alt ...
1
vote
0answers
33 views

Change Key's Function If Held (Tab>Super;Apostrophe>CTRL)

I'd really love tab and apostrophe to work as they are supposed to, but then change to Super and Ctrl respectively when held. If I can figure out how to do this, I'm gonna be doing it all over my ...
0
votes
0answers
203 views

How to install xev if it is not present

I'm teaching myself about xmodmap and some of the tutorials say that you can get the keycode of a key by using xev. When I try to run the command, I get -bash: xev: command not found Running apt-...
0
votes
0answers
11 views

Has anyone ever succeeded in mapping AltGr to SuperR while keeping SuperL as where it is with setxkbmap?

It really shouldn't be this difficult, but it just seems impossible to map the right alt or AltGr to Super key, while keeping the other keys where they are. I tried xmodmap, but it brings problems, ...
0
votes
0answers
8 views

How to turn a non-bindable key into a bindable one?

I'm talking about the Menu (keycode = 135) (aka Right Click), I don't use it So I disabled its contextmenu action with Xmodmap tool, now it doesn't open the menu and still working for keyboard ...
0
votes
0answers
50 views

Replacement for Terminal (Tilda, Guake, Terminator, …) but with modifier key remapping

I'm looking for a replacement for the Terminal (built-in to Ubuntu 19.04, Gnome), such as Tilda, Guake, Terminator, ... The feature I'm after is application-specific with modifier key remapping. I....
0
votes
0answers
17 views

Rebind key within only one application [duplicate]

I am moving from Windows to Fedora, previously I have used Autohotkey and a script found here: https://github.com/Karrandalf/D2SpaceModifier to rebind space to also send Super, then isolate the ...
2
votes
0answers
143 views

Xmodmap releases modifier keys when some keys are pressed with the modifier keys

My computer is Ubuntu 18.04 LTS with the Linux kernel 5.0.0-23-generic. I remap the Shift_R key to a Mode_switch, clear Shift keycode 50 = Shift_L NoSymbol Shift_L keycode 62 = Mode_switch ...
2
votes
0answers
70 views

Xmodmap seems to send some extra keys

I am using Ubuntu 18.04 LTS with the Linux kernel 5.0.0-23-generic. I tried to remap keys via xmodmap, so created an xmodmap config .xmodmap and then loaded: $ xmodmap .xmodmap In this ...
1
vote
0answers
47 views

Disable key combination in X11

I am trying to disable the key combination Left+Right and Up+Down. To achieve this, I tried binding the keys in the configuration file of my window manager but it did not work, as it does not allow to ...
0
votes
0answers
26 views

How to remap Tab key to double as Alt modifier?

I'd like to avoid Emacs pinky if possible (I'm also really lazy). So I've been wanting to remap my Tab key to do the following: If pressed: act like the normal Tab key If held down: act as the Alt ...
1
vote
0answers
26 views

Neutralizing a combination of two keys on the keyboard in X11

I'm trying to disable the key combinations of Up + Down and Left + Right. I tried to use the xmodmap utility, but it does not seem to support key combinations other than the ones using metakeys. I ...
3
votes
0answers
157 views

Using xmodmap to remap Caps_Lock to Control and Tab to Alt breaks C-M-KEY combos

Here's the goal: swap CapsLock and CtrlL and also swap Tab and AltL. (This would allow me to have both useful modifiers easily accessible). I have tried a few different ways to do this with xmodmap ...
0
votes
1answer
71 views

Executing command when application comes to the foreground (Ubuntu 19.04, X11)

I'd like to be able to execute a command when switching to specific applications. In particular, I'd like to able to change the xmodmap when switching to the Terminal and then change it again when ...
1
vote
1answer
592 views

Bind CapsLock+hjkl to arrow keys

I want to bind CapsLock + hjkl to arrow keys, I found two way that each have some issues: Solution 1 Using xkb : Edit /usr/share/X11/xkb/symbols/us first block. # replace Caps with AltGr ...
0
votes
0answers
27 views

xmodmap “keycode” command confusion

I'm working on getting a custom xmodmap configuration set up and I can't for the life of me understand some of the behavior from the keycode NUMBER = KEYSYMNAME ... option. See below for some quick ...
2
votes
0answers
80 views

Remap keys including a modifier

I use an alternative german keyboard layout on Ubuntu 18.04: ~$ setxkbmap de koy Now I want to swap three keys (Mod3 → f → ß → Mod3) as shown in that picture: This are the keycodes for these keys: ...
1
vote
1answer
184 views

Remapping Caps Lock to Alt (Meta) in GNOME / X11

I'm looking to replace Caps Lock behaviour with the "Left Alt"/"Meta" modifier, in GNOME / X11. There are a few options to replace Caps Lock with Super, Ctrl, etc. in GNOME Tweak Tool, which seems to ...
3
votes
1answer
6k views

How to make xmodmap changes permanent?

Using xmodmap to remap meta key with the following command: xmodmap -e 'keycode 133 = F14' How can i make the change permanent, especially on system sleep, resume and reboot?
0
votes
2answers
48 views

Trigger a certain key combo with another one

Can anyone suggest me on what would be the best way to trigger a certain key kombo with another one. Say, I'd like to send CTRL+= while pressing CTRL+[. Basically I want to workaround zoom for Google ...
0
votes
0answers
106 views

Vim statusline shows ^[[2;2R^[[>41;330;0c^[]10;rgb:e5e5/e5e5/e5e5^G^[]11;rgb:0000/0000/0000^G after mapping Capslock to Esc

I added au VimEnter * silent! !xmodmap -e 'clear Lock' -e 'keycode 0x42 = Escape' au VimLeave * silent! !xmodmap -e 'clear Lock' -e 'keycode 0x42 = Caps_Lock' to my .vimrc to map Capslock to Escape. ...
1
vote
0answers
441 views

xmodmap lost after sleep

In Ubuntu 18.04 I use the following autostart script: [Desktop Entry] Type=Application Exec=/home/user/.xinitrc Version=1.0 X-GNOME-Autostart-enabled=true Name=xmodmap Comment=xmodmap script which ...
1
vote
1answer
162 views

Some applications ignore Xmodmap settings

I am using the following ~/.Xmodmap keycode 133 = Mode_switch keycode 134 = Mode_switch keysym h = h H Left keysym l = l L Right keysym k = k K Up keysym j = j J Down keysym w = w W Prior keysym s = ...
0
votes
1answer
61 views

How to select text when Arrows, Home, and End are mapped to Mode_Switch+Letter

I managed to map the arrow keys, Home, and End to Mode_Switch+Letter (where mode switch is Caps Lock) as explained in this answer: Bind CAPS+hjkl to arrow keys; CAPS to ESC though if I want to ...
5
votes
2answers
1k views

How to map mouse keys as keyboard keys without losing'numeric keypad' for Linux?

I know how to map mouse click for F1, F2 and F3 (respectively left click, middle click, right click): xkbset m # required, but disable keypad xmodmap -e "keycode 67 = Pointer_Button1 ...
0
votes
1answer
44 views

configure non-modifier as a modifier key

This question is similar to: https://askubuntu.com/questions/33751/making-any-key-into-a-modifier-key I have a machine with a non-standard keyboard layout (lenovo x1 carbon) where the CapsLock key ...
4
votes
1answer
438 views

setxkbmap conflicting with xmodmap

So initially I had the following in my ~/.Xmodmap which mapped CapsLock+HJKL to left/down/up/right like in vim: keycode 66 = Mode_switch keysym h = h H Left keysym j = j J Down keysym k = k K Up ...
1
vote
0answers
107 views

Change Scan Code of Keys

In Windows I use sharpkeys to remap keys. On Mac I use Karabiner Elements to remap keys. Is there a preferably built in way to remap keys based on scan code? The advantage of this is that VirtualBox,...
5
votes
1answer
2k views

How to know what is super key?

I have this output of xmodmap command: shift Shift_L (0x32), Shift_R (0x3e) lock Caps_Lock (0x42) control Control_L (0x25), Caps_Lock (0x42), Control_R (0x69) mod1 Alt_L (...
1
vote
0answers
249 views

xmodmap: Super modifier negates Mode_switch modifier when pressed together

Running Manjaro with i3wm. I mapped my Caps key to Mode_switch modifier with xmodmap. I am using it to turn WASD into arrow keys, and a few other combinations. Pressing Caps+W/A/S/D works as ...
1
vote
1answer
89 views

xmodmap: remapped Control_L not working for copying and pasting

After spending hours, I found that xmodmap can be used to remap / key to Left Control key. I used following command: $ xmodmap -e "keycode 94 = Control_L NoSymbol Control_L" Using xev, I find that ...
1
vote
0answers
141 views

Why Tab can't be modified with ISO_Level3_Shift

I am using a 40 key keyboard called daisy, I want to have a consistent layout of all my keyboards. The tab can't modified to other keys is kind a waste of resources. The relevant part in .Xmodmap is: ...
2
votes
0answers
692 views

How to alter level 3 meaning of keys with XKB

I had a neat little hack to get German "Umlaute" on a US ANSI keyboard with XModap. When I hold Caps-Lock, I get Umlaute in the places where they are on a German keyboard. Here my .Xmodmap file ...

1
2 3 4 5