Add metal hud toggle script
This commit is contained in:
parent
34d66bef53
commit
6204a89328
1 changed files with 14 additions and 0 deletions
14
scripts/toggle-metal-hud.sh
Executable file
14
scripts/toggle-metal-hud.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue