* Swapping Ctrl-Key with Atl-Key, Caps-Lock for Hyper-Key
@ 2022-03-13 12:39 goncholden via Users list for the GNU Emacs text editor
0 siblings, 0 replies; only message in thread
From: goncholden via Users list for the GNU Emacs text editor @ 2022-03-13 12:39 UTC (permalink / raw)
To: goncholden via Users list for the GNU Emacs text editor
I would like to swap Ctrl-Key with the Atl-Key and use Caps-Lock for Hyper-Key. Want to use the Dvorak layout.
setxkbmap -layout us -variant dvorak
Results from xmodmap are as follows
xmodmap -pm
xmodmap: up to 4 keys per modifier, (keycodes in parentheses):
shift Shift_L (0x32), Shift_R (0x3e)
lock Caps_Lock (0x42)
control Control_L (0x25), Control_R (0x69)
mod1 Alt_L (0x40), Alt_R (0x6c), Meta_L (0xcd)
mod2 Num_Lock (0x4d)
mod3
mod4 Super_L (0x85), Super_R (0x86), Super_L (0xce), Hyper_L (0xcf)
mod5 ISO_Level3_Shift (0x5c), Mode_switch (0xcb)
xmodmap -pke | grep "Control\|Alt\|Meta\|Hyper\|Super"
keycode 37 = Alt_L Meta_L Alt_R Meta_R
keycode 64 = Control_L NoSymbol Control_L
keycode 105 = Alt_L Meta_L Alt_R Meta_R
keycode 108 = Control_R NoSymbol Control_R
keycode 133 = Super_L NoSymbol Super_L
keycode 134 = Super_R NoSymbol Super_R
keycode 204 = NoSymbol Alt_L NoSymbol Alt_L
keycode 205 = NoSymbol Meta_L NoSymbol Meta_L
keycode 206 = NoSymbol Super_L NoSymbol Super_L keycode 207 = NoSymbol Hyper_L NoSymbol Hyper_L
Have started doing as follows but am getting confused.
!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
clear mod3
!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! Set Alt-Key (Meta-Key) to position of Ctrl-Key
clear mod4
keycode 37 = Alt_L Meta_L Alt_R Meta_R
keycode 105 = Alt_L Meta_L Alt_R Meta_R
add mod4 = Alt_L Meta_L Alt_R Meta_R
!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! Set Ctrl-Key to position of Alt(Meta)-Key
keycode 64 = Control_L NoSymbol Control_L
keycode 108 = Control_R NoSymbol Control_R
!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Set Hyper-Key to position of Ctrl-Key
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-03-13 12:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-13 12:39 Swapping Ctrl-Key with Atl-Key, Caps-Lock for Hyper-Key goncholden via Users list for the GNU Emacs text editor
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.