Risposte:
Questo non è facilmente possibile.
Come afferma la pagina man xmodmap :
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.
Per impostazione predefinita, AltGrè il tasto Mode_switch.
È possibile mappare una chiave diversa o aggiuntiva (a AltGr) come Mode_switchchiave, ad es. CtrlChiave giusta :
xmodmap -e "keycode 105 = Mode_switch Mode_switch"
Il problema tuttavia è che la chiave non funzionerà più come Ctrlchiave normale .
Btw: C'è una domanda, che chiede precisamente, come usare la Ctrlchiave come chiave modificatrice: come usare Control come modificatore con xmodmap?
Provare:
xmodmap -e "keycode 33 = p P Up"
e fammi sapere se è il risultato che stai cercando.
Come ha detto nidi, questo non è facilmente possibile con xmodmap.
Tuttavia è super facile con AutoKey.
Vedere la seguente risposta come esempio: /ubuntu//a/303978/140789