xorg: configure keyboard options for Apple computers
This commit is contained in:
parent
72aa30ee7a
commit
db4cba9c24
@ -10,6 +10,7 @@ fi
|
|||||||
|
|
||||||
[ -r /etc/sysconfig/keyboard ] && . /etc/sysconfig/keyboard
|
[ -r /etc/sysconfig/keyboard ] && . /etc/sysconfig/keyboard
|
||||||
[ -r /etc/sysconfig/postplug ] && . /etc/sysconfig/postplug
|
[ -r /etc/sysconfig/postplug ] && . /etc/sysconfig/postplug
|
||||||
|
[ -r /etc/sysconfig/machine ] && . /etc/sysconfig/machine
|
||||||
|
|
||||||
me="xorg"
|
me="xorg"
|
||||||
|
|
||||||
@ -142,8 +143,22 @@ __EOF
|
|||||||
[ "$XKB_VARIANT" ] && echo " Option \"XkbVariant\" \"$XKB_VARIANT\"" >>/etc/X11/xorg.conf.d/10-keyboard.conf
|
[ "$XKB_VARIANT" ] && echo " Option \"XkbVariant\" \"$XKB_VARIANT\"" >>/etc/X11/xorg.conf.d/10-keyboard.conf
|
||||||
[ "$XKB_OPTIONS" ] && echo " Option \"XkbOptions\" \"$XKB_OPTIONS\"" >>/etc/X11/xorg.conf.d/10-keyboard.conf
|
[ "$XKB_OPTIONS" ] && echo " Option \"XkbOptions\" \"$XKB_OPTIONS\"" >>/etc/X11/xorg.conf.d/10-keyboard.conf
|
||||||
echo "EndSection" >>/etc/X11/xorg.conf.d/10-keyboard.conf
|
echo "EndSection" >>/etc/X11/xorg.conf.d/10-keyboard.conf
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# configure keyboard options for Apple computers
|
||||||
|
if [ "${SYSTEM_MANUFACTURER:0:5}" = "Apple" ]; then
|
||||||
|
cat > /etc/X11/xorg.conf.d/15-keyboard-apple.conf << __EOF
|
||||||
|
Section "InputClass"
|
||||||
|
Identifier "Keyboard mac"
|
||||||
|
Driver "evdev"
|
||||||
|
Option "XkbOptions" ",lv3:rwin_switch" # Mac only
|
||||||
|
MatchIsKeyboard "on"
|
||||||
|
EndSection
|
||||||
|
__EOF
|
||||||
|
else
|
||||||
|
rm /etc/X11/xorg.conf.d/15-keyboard-apple.conf
|
||||||
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# (re)create the '/tmp/.ICE-unix' directory with the right permissions
|
# (re)create the '/tmp/.ICE-unix' directory with the right permissions
|
||||||
|
Loading…
Reference in New Issue
Block a user