You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo "Creating a backup of the original script at $SCRIPT_PATH.bak"
sudo cp "$SCRIPT_PATH" "$SCRIPT_PATH.bak"
fi
# Modify the timeout in the script
echo "Modifying the timeout in $SCRIPT_PATH..."
sudo sed -i 's/tonumber(node.properties\["session.suspend-timeout-seconds"\]) or [0-9]\+/tonumber(node.properties["session.suspend-timeout-seconds"]) or 0/' "$SCRIPT_PATH"
# Restart the WirePlumber service to apply changes
echo "Restarting WirePlumber..."
systemctl --user restart wireplumber
echo "Modification complete! Timeout has been disabled. A backup of the original file is available at $SCRIPT_PATH.bak."