Fix ordering and keyboard_grouping setting

This commit is contained in:
Noxwell
2026-01-28 11:42:04 -06:00
parent 4017a7a449
commit 2cbe789721

View File

@@ -7,14 +7,15 @@ if echo "${UI_SERVICE}" | grep -q "sway"; then
# Call the function to fullscreen the window for app_id asynchronously
sway_fullscreen "${1}" &
# Explicitly map all input devices to the active game seat to prevent wayland focus revocation, and unify virtual input nodes.
swaymsg 'seat seat1 attach "*"'
swaymsg 'seat * keyboard_grouping smart'
# Create a virtual touch keyboard device if there are two displays
if [[ "${DEVICE_HAS_DUAL_SCREEN}" == "true" ]]; then
TSKEY=$(get_setting "rocknix.touchscreen-keyboard.enabled")
if [[ "${TSKEY}" == "1" ]]; then
swaymsg 'output DSI-1 power on, seat seat1 fallback no'
fi
fi
# Explicitly map all input devices to the active game seat to prevent wayland focus revocation.
swaymsg 'seat seat1 attach "*"'
swaymsg 'seat * keyboard_grouping none'
fi