Come mappare Ctrl-p sulla freccia su usando xmodmap?


10

Ho letto la sezione grammaticale di xmodmap ma non riesco ancora a capire come potrei farlo.


Potrebbe esserci un modo per mappare Ctrl-p / Ctrl-n per comportarsi come tasti su / giù direttamente da Gnome. Chiunque?
VitoshKa,

Risposte:


3

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?


1

Provare:

xmodmap -e "keycode 33 = p P Up"

e fammi sapere se è il risultato che stai cercando.


Utilizzando il nostro sito, riconosci di aver letto e compreso le nostre Informativa sui cookie e Informativa sulla privacy.
Licensed under cc by-sa 3.0 with attribution required.