So i searched for a way to remap 'AltGr + y' to '|', 'AltGr + ,' to '<' and 'AltGr + .' to '>'
Console
evaluate the key to change with
#> sudo showkey -s
press the key
here y is 0x2c = 44
here , is 0x33 = 51
here . is 0x34 = 52
test remap with
echo "altgr keycode 44 = bar" | loadkeys
bar is a symbolic name i found at German-Howto
Finally i extended /etc/rc.local with
LOADKEYS=$(which loadkeys)
if [ -x $LOADKEYS ]; then
cat << EOT | $LOADKEYS
altgr keycode 44 = bar
altgr keycode 51 = less
altgr keycode 52 = greater
EOT
unset LOADKEYS
fi
Xorg
evaluate the key to change with
#> xev
press the key
here y is keycode 52
here , is keycode 59
here . is keycode 60
test remap with
xmodmap -e "keycode 52 = y Y y Y bar"
dump keys with
#> xmodmap -pke > ~/.Xmodmap
remove all lines except lines starting with desired keycodes to change.
my ~/.Xmodmap now looks like
keycode 52 = y Y y Y bar U203A guillemotright
keycode 59 = comma semicolon comma semicolon less multiply periodcentered
keycode 60 = period colon period colon greater division U2026
[ view entry ] ( 2459 views ) | print article
<<First <Back | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | Next> Last>>