14 lines
370 B
Bash
Executable file
14 lines
370 B
Bash
Executable file
#!/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
|