回答:
これは簡単にはできません。
同様にxmodmapをmanページの状態:
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.
デフォルトでAltGrは、Mode_switchキーです。
別のまたは追加の(にAltGr)をMode_switchキーとしてマッピングすることができます。たとえば、正しいCtrlキー:
xmodmap -e "keycode 105 = Mode_switch Mode_switch"
ただし、問題は、キーが通常のCtrlキーとして機能しなくなることです。
ところで:Ctrlキーを修飾キーとして使用する方法を正確に尋ねる質問があります: xmodmapで修飾子としてコントロールを使用する方法?
試してください:
xmodmap -e "keycode 33 = p P Up"
そしてそれがあなたが探している結果であるかどうか私に知らせてください。
nidiが言ったように、それはxmodmapでは簡単にはできません。
ただし、AutoKeyを使用すると非常に簡単です。
例として次の回答を参照してください:https : //askubuntu.com/a/303978/140789