sway: allow no input devices

This commit is contained in:
Alex Bee 2022-11-01 17:45:41 +01:00
parent 04f302657f
commit 96f064288b

View File

@ -10,5 +10,8 @@ if [ ! -z "$(lsmod | grep 'nvidia')" ]; then
SWAY_GPU_ARGS="--unsupported-gpu"
fi
# start sway, even if no input devices are connected
export WLR_LIBINPUT_NO_DEVICES=1
logger -t Sway "### Starting Sway with -V ${SWAY_GPU_ARGS} ${SWAY_DAEMON_ARGS}"
/usr/bin/sway -V ${SWAY_GPU_ARGS} ${SWAY_DAEMON_ARGS} > ${SWAY_LOG_FILE} 2>&1