From: goncholden via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: goncholden via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org>
Subject: Swapping Ctrl-Key with Atl-Key, Caps-Lock for Hyper-Key
Date: Sun, 13 Mar 2022 12:39:46 +0000 [thread overview]
Message-ID: <X9e65evqlX-O0cn8IV4EORjDXr6sK9iCL9xK3sSkYITKDgEkyz-f1KHJ9Sg-Fli461mkskKAoYJ9vgfpv0kYgdwgyRG5N81TCNQ778aFMFY=@protonmail.com> (raw)
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
reply other threads:[~2022-03-13 12:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='X9e65evqlX-O0cn8IV4EORjDXr6sK9iCL9xK3sSkYITKDgEkyz-f1KHJ9Sg-Fli461mkskKAoYJ9vgfpv0kYgdwgyRG5N81TCNQ778aFMFY=@protonmail.com' \
--to=help-gnu-emacs@gnu.org \
--cc=goncholden@protonmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.