Add optional KB/Mouse input capture with Xorg

This commit is contained in:
Josh.5
2022-10-05 07:43:20 +13:00
committed by Josh Sunnex
parent 829754b8fb
commit 1e255f822d
2 changed files with 11 additions and 1 deletions

View File

@@ -74,6 +74,14 @@ function configure_x_server {
# Enable xvfb supervisord script
sed -i 's|^autostart.*=.*$|autostart=true|' /etc/supervisor.d/xvfb.ini
fi
# Enable KB/Mouse input capture with Xorg if configured
if [ ${ENABLE_EVDEV_INPUTS:-} = "true" ]; then
echo "Enabling evdev input class on pointers, keyboards, touchpads, touch screens, etc."
cp -fv /usr/share/X11/xorg.conf.d/10-evdev.conf /etc/X11/xorg.conf.d/10-evdev.conf
else
echo "Leaving evdev inputs disabled"
fi
}
if ([ "${MODE}" != "s" ] && [ "${MODE}" != "secondary" ]); then