Re: déplacement de touche avec XKB.
Salut,
Ci-joint un script que j'utilisais pour installer un clavier
personalisé (joint aussi):
$ tree
.
├── use_custom_keyboard
└── symbols/custom
$ use_custom_keyboard
--
Gabriel
#!/bin/sh
cd "$($realpath "$(dirname $0)")"
setxkbmap custom fr -print | xkbcomp -I. - $DISPLAY
// symbols/custom
partial alphanumeric_keys
xkb_symbols "fr" {
include "fr(oss)"
// Level3:
key <LWIN> {
type[Group1]="ONE_LEVEL",
symbols[Group1] = [ ISO_Level3_Shift ]
};
key <RALT> {
type[Group1]="ONE_LEVEL",
symbols[Group1] = [ ISO_Level3_Shift ]
};
// Alt:
key <RWIN> { [ Alt_R, Meta_R ] };
key <LALT> { [ Alt_L, Meta_L ] };
// Control:
key <LCTL> { [ Control_L ] };
key <RCTL> { [ Control_R ] };
// Mode switch:
key <MENU> {
symbols[Group1]= [ Mode_switch ],
virtualMods= AltGr
};
key <CAPS> {
symbols[Group1]= [ Mode_switch ],
virtualMods= AltGr
};
};
Reply to: