#!/usr/bin/env bash # 1781478000-gamemode-toggle-deckshift.sh # Repoint the utilities "Game Mode" gamepad toggle to launch the DeckShift gaming # session (if installed; else do nothing) instead of caelestia's cosmetic Game # Mode. Patches the package-owned nosignal-shell file on already-installed boxes. # Idempotent. Requires a shell restart (Ctrl+Super+Alt+R) to take effect — qs -n # does not hot-reload; the installer prints that reminder. # # >> Builder: the REAL fix is in the nosignal-shell FORK source # (modules/utilities/cards/Toggles.qml). Bake the corrected file there and set # NOSIGNAL_SKIP_SHELL_PATCH for the build so this fallback patch is skipped. set -euo pipefail : "${NOSIGNAL_SRC:?NOSIGNAL_SRC must point at the NoSignal source root}" sudo sh "$NOSIGNAL_SRC/gamemode-toggle-deckshift/install-gamemode-toggle-deckshift.sh"