Add metal hud toggle script

This commit is contained in:
Sebastian Cabrera 2025-03-26 22:49:02 +04:00
parent 34d66bef53
commit 6204a89328
No known key found for this signature in database

14
scripts/toggle-metal-hud.sh Executable file
View file

@ -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