diff --git a/source/x11/xorg-server/xorg-server.install b/source/x11/xorg-server/xorg-server.install index c10d8a0..58d9d1f 100644 --- a/source/x11/xorg-server/xorg-server.install +++ b/source/x11/xorg-server/xorg-server.install @@ -1,7 +1,12 @@ post_install() -{ - echo "Update layout keyboard with ${LANG:0:2}" - sed -i "/xkb_layout/s/Keyboard_Layout/${LANG:0:2}/" /etc/X11/xorg.conf.d/10-evdev.conf +{ + if [ "$LANG" = "en_US" ]; then + layout="us" + else + layout=${LANG:0:2} + fi + echo "Update layout keyboard with $layout" + sed -i "/xkb_layout/s/Keyboard_Layout/$layout/" /etc/X11/xorg.conf.d/10-evdev.conf } post_upgrade()