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%/*}"