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
1answer
175 views

Map KEY_LEFTSHIFT key in xmodmap

At the moment. on Press of left shift key it works differently. For example on press on shift(left) + a display '-' rather than 'A'. Shift right works as expected. I have noticed "F1" behave as shift ...
1
vote
0answers
329 views

Altering keyboard layout on plugging in or out

I use an external keyboard with my laptop and a script to change the keyboard layout depending on whether the keyboard is plugged in. This works fine, but I find it shouldn't be necessary to run the ...
2
votes
0answers
76 views

xmodmap and modifier

I wanted to remap Ctrl-N/Ctrl-P to Up and Down keys. And I found this post and did something like this: ! add Mode_switch keycode 66 = NoSymbol NoSymbol keycode 66 = Mode_switch keycode 57 = n N ...
2
votes
2answers
107 views

Trying to have a command start on boot, but not working

I have been fighting with the problem for three days now. I have a computer that I am setting up for a friend and I have Zorin OS 12 on it since it was the first thing that came to mind that was ...
1
vote
1answer
179 views

Linux Mint 18: xmodmap and third level don't work on firefox and texstudio

I'm having problems with keyboard input on two apps: firefox 50.1 and TeXstudio 2.10.8. I recently discovered how to enable two keys as 3rd level chooser in Xubuntu. The same works for Linux Mint, ...
2
votes
0answers
438 views

Karabiner like features with xmodmap

Karabiner for OS X has a few features that I would like to get in Fedora. You can hold Tab and use h and l to switch between the running apps (Tab basically works as a modifier) You can hold s and ...
4
votes
0answers
669 views

how to remap super keys?

I'm playing around with keyboard settings, and wanted to remap my windows keys to tab, for convenience. So I tried (133 is the left super key on my keyboard) xmodmap -e "keycode 133 = Tab Super_L" ...
1
vote
1answer
402 views

Unable to find keycode for volume key on Apple keyboard

Summary I switched to i3wm and I'm trying to set up my environment. I am using an Apple keyboard (circa 2007). It has three volume keys and I can't find their keycodes for mapping. Analysis I read ...
0
votes
1answer
788 views

What is the best way to map Caps Lock to windows key permanently?

I have this right now in my ~/.Xmodmap clear Lock keycode 66 = Hyper_L and xmodmap ~/.Xmodmap in ~/.bashrc. This works alright for the first time but randomly the Caps Lock key goes back to working ...
4
votes
1answer
464 views

Xkbmap overwriting Xmodmap

I use Xmodmap to remap some of my keys. I want to use Xkbmap to have a keyboard shortcut to switch keyboard layouts. When I run setxkbmap us, my keyboard layout changes but my Xmodmap changes get lost....
1
vote
0answers
455 views

Why is my rebinding of Caps Lock reversed?

I use this snippet in my Emacs startup file: (if (eq window-system 'x) (shell-command "xmodmap -e 'clear Lock' -e 'keycode 66 = F13'")) to rebind Caps Lock. However sometimes the binding ...
3
votes
1answer
741 views

trying to remap f9 to insert key

I have a small laptop which doesn't have a full keyboard and I would like to insert with Shift+Insert to insert from the X clipboard but I don't have an Insert key. So I figured I just look it up the ...
1
vote
1answer
324 views

Key other than Control to send SIG*?

I'd like to swap Ctrl & Super so that I can use the physical super/meta key for copy/paste/select-all/find/etc. without application-specific configuration, which often doesn't exist. However, I'd ...
1
vote
0answers
827 views

xmodmap Alt+Tab doesn't work with new Alt_L key

I edited ~/.Xmodmap to set keycode 118 to Control_L, so that I have the same functionality for CTRL on both sides of Space. I had to remove and add Control_L to control and it works fine now. keycode ...
5
votes
1answer
730 views

“xmodmap -pke” shows more than 6 columns

Arch Wiki and other sites only explain the first 6 columns in "xmodmap -pke": Print the current keymap table formatted into expressions: $ xmodmap -pke [...] keycode 57 = n N [...] Each ...
6
votes
1answer
1k views

How can I change an underutilized keyboard key into a modifier key

I have a Korean keyboard that looks like this: Hanja (한자), just to the left of space, is so little utilized even when typing in Korean, yet it's in prime real real estate for my left thumb as an i3 ...
3
votes
2answers
174 views

disable insert key for all but one applications

I would like to disable the insert key on my keyboard, because I often hit it accidentaly when typing, and it messes up my text. I found I can use xmodmap to disable insert key completely: xmodmap -...
1
vote
1answer
771 views

~/.xinitrc and Xmodmap startup item fail to take effect on startup in mint 17.3

In accordance with this post I have added xmodmap ~/Documents/looseScripts/Xmodmap to my ~/.xinitrc. I have also created an item in "startup applications" with the command: bash -c "xmodmap ~/...
3
votes
0answers
186 views

read .Xmodmap on login in Cinnamon

I am running Linux Mint 17 and want Cinnamon to read from my .Xmodmap on start. Seems that ~/.Xmodmap is not being read by default. How do I do that?
4
votes
0answers
338 views

convert .Xmodmap to custom.xkb file and load it from $HOME directory - customize x keyboard [duplicate]

I use the following .Xmodmap file to map a few symbols and German Umlaute öäü: keycode 108 = Mode_switch keycode 13 = 4 dollar EuroSign keycode 19 = ...
2
votes
0answers
163 views

Map ctrl+key different from typing key in xkb or xmodmap

Is it possible to map ctrl+key different from regular typing key in linux? I have done it in windows with MSKLC but can't figure out how to do it in linux. E.g. I want to type dvorak but have regular ...
2
votes
0answers
311 views

Global vim-like (hjkl) navigation with numlock & xmodmap?

I'd like to be able mimic vim's hjkl navigation everywhere in the system by utilizing num lock (or scroll lock), and making hjkl keys act as arrows whenever num lock is on, and regular behavior ...
3
votes
0answers
758 views

Can I xmodmap only a specific keyboard?

I'd like to swap some keys but only in external keyboard. Is this possible with xmodmap? I've found this question: Can I Xmodmap only a specific device? but it refers only to mouse. I found here ...
1
vote
0answers
18 views

How to map S-Up to Down? [duplicate]

The down key on my laptop is broken. I want to map shift+up to down. My original layout had (from xmodmap -pke) keycode 111 = Up NoSymbol Up keycode 113 = Left NoSymbol Left keycode 114 = Right ...
11
votes
3answers
3k views

Why do my xmodmap binds involving AltGr only work on some keys?

I want to remap my AltGR+Right_Windows but I can't figure out how. No matter what I try, pressing the right windows key emits the name keysym when right alt is pressed or not. These are the contents ...
1
vote
1answer
272 views

Why isn't X treating ALT_L and ALT_R differently w/r/t Mod1

I have changed the definition of Mod1 via xmodmap to not include ALT_R (to understand why scroll to the bottom). The current layout of the modifiers is below. Despite ALT_R not participating in the ...
1
vote
0answers
27 views

particular Laptop key has no keycode (found with xev from Xorg) [duplicate]

that following key should be XF86AudioLowerVolume, but it has not even a defined keycode, i could assign the function of XF86AudioLowerVolume. I've used xev to find that out. I'm using debian Jessie ...
1
vote
2answers
625 views

Can Xmonad treat left and right alt differently?

I have an application that utilizes ALT_R+ENTER to perform a function. When using this application in Xmonad, the combination Mod1+ENTER triggers the function "swap the current window with the master ...
2
votes
1answer
1k views

Changing specific keys on Apple keyboard under Fedora 22

I'm trying to change some specific keys on my USB Apple keyboard running Fedora 22. Just spent three days searching for an answer and trying different solutions, I ended up using xmodmap and still ...
1
vote
1answer
891 views

Set global xmodmap in Debian

I currently have xmodmap setup for my user so I can type certain special characters. However, this only applies to my user, and I need these characters to be type-able everywhere, for all users. Is ...
2
votes
0answers
85 views

Why does Caps Lock key behave as Caps Lock key without the Lock modifier?

At first, there is no key mapping. The Caps Lock key on my keyboard behaves as Caps Lock. lone@debian:~$ xmodmap -pke | grep Caps_Lock keycode 66 = Caps_Lock NoSymbol Caps_Lock lone@debian:~$ ...
1
vote
1answer
489 views

After mapping Caps Lock to Escape using xmodmap, how to revert Caps Lock back to Caps Lock without altering Escape key?

I have mapped my Caps Lock key to function as Escape using this command. xmodmap -e "remove Lock = Caps_Lock" -e "keysym Caps_Lock = Escape" Now how can I undo this mapping? I tried the following ...
3
votes
1answer
4k views

How do I enable Shift Lock? (Sticky shift key)

I want to map one of my keys the shift lock key. In my understanding, the shift lock key is a kind of a 'sticky' shift key: it remains pressed, shifting all keys of the layout until pressed again. It ...
1
vote
1answer
771 views

Remapping both Caps Lock and Windows keys to be separate modifiers

I want to use both my Caps Lock key and Windows key in my i3wm config. In particular, I want Caps Lock to take the place of $mod in the config and I also want to be able to reference the Windows key ...
2
votes
0answers
300 views

Remap key to two modifers or use meta shortcuts in terminal (terminator)

Background: Running Arch Linux on KDE. KDE shortcuts have a problem with being saved past reboot so i'm using xmodmap and xbindkeys. So I am using xmodmap. Right now caps lock is mapped to meta (...
0
votes
1answer
300 views

change keyboard layout

i have hp pavillion g6 running manjaro, the keyboard looks like this, i broke both shift, the left ctrl and the caps lock... hmm while trying to clean it... i don't really care about ctrl, the other ...
5
votes
3answers
2k views

How do I bind AltGr+key to a symbol?

I want to bind AltGr+W to æ, and some other combinations, how can I do this? I also need AltGr+Shift+W to Æ. I normally use setxkbmap to change the keymap.
2
votes
0answers
792 views

xkbmap remap PrtScr and Insert Keys to Home and Escape

I've been fumbling with xkbmap for a while, and I can't figure out how to remap the Print Screen button to Home. It's as if the us keymap just doesn't mention the PRSC key code at all. I can't use ...
6
votes
4answers
3k views

Create xkb configuration from xmodmap

I have a custom xmodmap file I use, including useful multi-language diacriticals, english quotes, dashes &c. I want to use this map with kmscon, so I need to create a xkb configuration from it. Is ...
2
votes
1answer
2k views

Map Right Alt to Alt instead of AltGr

I have a Kinesis Advantage keyboard and I'm trying to make it so that my right and left Alt keys do the same thing. Currently the left Alt key works as expected but the right Alt key just allows me to ...
8
votes
2answers
6k views

How to permanently remap caps lock to esc in X11?

I want to remap caps lock to escape in X11 (i.e. pressing the physical caps lock button will be interpreted as esc by applications and esc's behavior will not change). The solution must survive an X ...
4
votes
0answers
781 views

Missing KeyPress event

I got new thinkpad and it's missing a ContextMenu key and has PrintScreen key where ContextMenu should have been. I remapped it using xmodmap. The problem is, the key is missing KeyPress events, only ...
0
votes
0answers
77 views

Some apps don't swapped alt&win after xmodmap runs? (GUI emacs)

I have a mac-book-air. I swapped my Alt & Win with xmodmap as per linux post like so: keycode 64 = Alt_L keycode 133 = Super_L remove Mod1 = Alt_L remove Mod4 = Super_L add Mod1 = Super_L add ...
3
votes
1answer
2k views

How Are Keys or Keycodes Mapped to X Key Symbols?

I am trying to map a function key combination to an XF86 key symbol. The key combination is Fn+F1, which I was able to use showkey to get the raw keycode for. jason@io ~ $ showkey kb mode was RAW [ ...
1
vote
1answer
618 views

How to map extended buttons on mouse?

I am trying to follow this guide to using a Logitech G600. I have (using a windows computer) mapped each key combo on the mouse to something on a normal keyboard. I have set up some rules in /etc/udev/...
4
votes
1answer
2k views

xmodmap shift + keycode to produce keysym

There seem to be few examples for how to use xmodmap to bind a modifier + some key, to a new key. E.g. I want to bind left Shift (keycode 50) + ` (keycode 21) to emit a grave accent character: ` ...
3
votes
1answer
285 views

Xmodmap syntax for rebinding Shift+Down to Up

I would like to rebind some keys on Linux via Xmodmap. Left and up cursor on my Acer (yes, I know) laptop have broke. I would like to map shift+down to up, and shift+right to left. Struggling to ...
1
vote
1answer
548 views

.xsession executed on login in Linux Mint Cinnamon

I've put a command to change my keyboard mapping in .xession, but this does not appear to be executed on login in Cinnamon, although it seems to work fine on an older MATE box. Since first asking ...
1
vote
0answers
21 views

Key with modifiers to call certain behaviour in xmodmap

HW: Samsung N145 (10" netbook) OS: Xubuntu 14.10 Problem: Backspace key is not functioning. Want to make Backspace key behaviour be called by Ctrl+Del key combination. I guess it should be possible to ...
4
votes
2answers
2k views

xmodmap keybindings don't work

I am trying to use Xmodmap to add some german diareses/umlauts to my keyboard, but Xmodmap is not working with them (but is with other remappings). I am following this guide: German Umlauts on US ...