From 6a48817da2bfd7550d43c1d1e48ca172a19209b7 Mon Sep 17 00:00:00 2001 From: stormdragon2976 Date: Mon, 15 May 2023 00:51:32 -0400 Subject: [PATCH] For Freedoom, shortened some messages that are spoken with tts. Added tts indicator for run and walk. --- linux-game-manager.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/linux-game-manager.sh b/linux-game-manager.sh index 51f63e7..89ce89b 100755 --- a/linux-game-manager.sh +++ b/linux-game-manager.sh @@ -406,12 +406,18 @@ game_launcher() { *doom*) exec stdbuf -oL ${game} | stdbuf -oL grep -E \ -e '^[0-9]+\. ' \ + -e '^"cl_run"' \ -e '^Game saved. ' \ -e '^A secret is revealed!$' \ -e '^MAP[0-9]*' \ -e '^Player was ' \ -e '^Please select a game wad \(or 0 to exit\):' \ - -e '^You have no keys in your pocket!$' | spd-say -e + -e '^You have no keys in your pocket!$' | stdbuf -oL sed \ + -e 's/MAP0\([1-9]\)/MAP\1/' \ + -e 's/"cl_run" = "true"/run/' \ + -e 's/"cl_run" = "false"/walk/' \ + -e 's:.*/:Game saved. (:' \ + | spd-say -e ;; *"main.py") pushd "${game%/*}"