Score:4

Hyper-key u --> Like Arrow-Up

in flag

I made CapsLock the Hyper-key via gnome-tweaks

Sorry, I have only the german screenshot. "Feststelltaste" means "CapsLock"

gnome-tweaks-capslock-de

Now I would like to map

  • Hyper-u to Arrow-Up
  • Hyper-n to Arrow-Down
  • Hyper-i to Page-Up
  • Hyper-m to Page-down

It would be great if this could be done by doing config in $HOME.

For example via .xmodmaprc

Related question: Make arrow-up/down, Pos1, End, Del ... more easy

Background

I like the then fingers touch typing. I am happy with my QWERTZ layout for a-Z. But these special keys always make me leave the comfortable position with the pointer fingers on "F" and "J".

guettli avatar
in flag
Maybe python-libevdev helps: https://python-libevdev.readthedocs.io/en/latest/#basic-examples
Score:0
br flag

When Caps Lock behavior is set to default, i.e, "Disabled"

Caps Lock behavior set to default

create .xmodmap file with below content,
keycode 66 is the Physical Caps Lock Key on My Keyboard

clear lock
keycode 66 = Mode_switch
add lock = Mode_switch
keycode 30 = u U Up
keycode 57 = n N Down
keycode 31 = i I Prior
keycode 58 = m M Next

Run

xmodmap .xmodmap
guettli avatar
in flag
I get this error message from `xmodmap` X Error of failed request: BadValue (integer parameter out of range for operation) Major opcode of failed request: 118 (X_SetModifierMapping) Value in failed request: 0x17 Serial number of failed request: 17 Current serial number in output stream: 17
br flag
Ignore it n check the key combination if it's Working or not. I got the error but combination worked.
guettli avatar
in flag
It works in gedit. But not in Chromium and not in PyCharm :-(
br flag
@guetti that worked for me in chromium in my Ubuntu 20.04, I dont know about PyCharm. if you are exclusively looking for PyCharm.. there may be a different way to achieve?
vanadium avatar
cn flag
Will this work in Wayland?
Andra avatar
tr flag
it's very old, but maybe read [this](https://bugs.chromium.org/p/chromium/issues/detail?id=32304) about chromium
guettli avatar
in flag
Today I tried it again, but it does not work in PyCharm and not in vscode. But it works in Chrome and on the terminal. Nevertheless I need a solution which works in PyCharm and vscode.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.