Antworten:
Das ist nicht leicht möglich.
In der xmodmap-Manpage heißt es:
The first keysym is used when no modifier key is pressed in conjunction with
this key, the second with Shift, the third when the Mode_switch key is used
with this key and the fourth when both the Mode_switch and Shift keys are used.
Standardmäßig AltGrist die Taste Mode_switch.
Es ist möglich, ein anderes oder zusätzliches (zu AltGr) als Mode_switchSchlüssel zuzuordnen , z. B. den richtigen CtrlSchlüssel:
xmodmap -e "keycode 105 = Mode_switch Mode_switch"
Das Problem ist jedoch, dass der Schlüssel dann nicht Ctrlmehr als normaler Schlüssel funktioniert .
Übrigens: Es gibt eine Frage, die genau fragt, wie der CtrlSchlüssel als Modifikatorschlüssel verwendet werden soll: Wie wird Control als Modifikator mit xmodmap verwendet?
Versuchen:
xmodmap -e "keycode 33 = p P Up"
und lassen Sie mich wissen, ob es das Ergebnis ist, das Sie suchen.
Wie Nidi sagte, ist das mit xmodmap nicht einfach möglich.
Mit AutoKey ist das jedoch ganz einfach.
Siehe die folgende Antwort als Beispiel: /ubuntu//a/303978/140789