xmodmap

CMD & control keys swap in ubuntu

≯℡__Kan透↙ 提交于 2019-12-20 10:47:03
问题 I have an Apple keyboard with a cmd key which I'm trying to swap with the control key. From googleing the problem and searching across the forum I came with a several solutions. Unfortunately none of them worked for me. I've tried using the standard "Keyboard layout", Xmodmap & whatever I came across. The closest I got is swaping them but disabling the arrow keys. I'm using ubuntu 11. Hope someone can help me. Thank you in advance. Edit: This is my xmodmap result: shift Shift_L (0x32), Shift

Override inet using xkb under Linux

依然范特西╮ 提交于 2019-12-11 02:35:54
问题 I'm on Arch Linux (everything's up to date). I know how to define a new keyboard layout based on those under /usr/share/X11/xkb/symbols: I successfully created (and used) one from scratch but there's one little thing I still can't do... overriding keys from /usr/share/X11/xkb/symbols/inet. In particular, I'd like to disable I232 and I233 (brightness keys) without modifying /usr/share/X11/xkb/symbols/inet itself. Are those keys "protected" in a way they can't be overridden in a keyboard layout

How to separate alt and meta keys in emacs

China☆狼群 提交于 2019-12-07 09:07:29
问题 I would like to map a PgUp key on my keyboard to Alt modifier to produce A- key sequence in Emacs, so that I can map it to a whole new set of key bindings. I was looking at my keyboard mappigs and currently my left Alt key works as both Meta_L and Alt_L modifier. This is the relevant output of xmodmap -pke : keycode 64 = Alt_L Meta_L Alt_L Meta_L Alt_L Meta_L Alt_L Meta_L I'm not sure how to tell emacs to treat Alt and Meta totally separately, I have looked at the x-alt-keysym and it is nil

How to separate alt and meta keys in emacs

时光毁灭记忆、已成空白 提交于 2019-12-05 15:52:45
I would like to map a PgUp key on my keyboard to Alt modifier to produce A- key sequence in Emacs, so that I can map it to a whole new set of key bindings. I was looking at my keyboard mappigs and currently my left Alt key works as both Meta_L and Alt_L modifier. This is the relevant output of xmodmap -pke : keycode 64 = Alt_L Meta_L Alt_L Meta_L Alt_L Meta_L Alt_L Meta_L I'm not sure how to tell emacs to treat Alt and Meta totally separately, I have looked at the x-alt-keysym and it is nil Which keys Emacs uses for the alt modifier. This should be one of the symbols `alt', `hyper', `meta',

CMD & control keys swap in ubuntu

六眼飞鱼酱① 提交于 2019-12-03 00:29:20
I have an Apple keyboard with a cmd key which I'm trying to swap with the control key. From googleing the problem and searching across the forum I came with a several solutions. Unfortunately none of them worked for me. I've tried using the standard "Keyboard layout", Xmodmap & whatever I came across. The closest I got is swaping them but disabling the arrow keys. I'm using ubuntu 11. Hope someone can help me. Thank you in advance. Edit: This is my xmodmap result: shift Shift_L (0x32), Shift_R (0x3e) lock Caps_Lock (0x42) control Control_L (0x25), Control_R (0x69) mod1 Alt_L (0x40), Alt_R