diff --git a/scripts/toggle-metal-hud.sh b/scripts/toggle-metal-hud.sh new file mode 100755 index 0000000..bf5098d --- /dev/null +++ b/scripts/toggle-metal-hud.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +# Check if the Metal HUD is currently enabled +MTL_STATUS=$(/bin/launchctl getenv MTL_HUD_ENABLED 2>/dev/null) + +if [ "$MTL_STATUS" = "1" ]; then + # If enabled, disable it + /bin/launchctl unsetenv MTL_HUD_ENABLED + echo "Metal HUD disabled" +else + # If disabled, enable it + /bin/launchctl setenv MTL_HUD_ENABLED 1 + echo "Metal HUD enabled" +fi