-
-
Save Sam0230/e817c517f51b17bba6561673800cff68 to your computer and use it in GitHub Desktop.
Enable or disable the touch bar.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ "$1" == "enable" ]; then | |
launchctl load /System/Library/LaunchDaemons/com.apple.touchbarserver.plist | |
/usr/libexec/TouchBarServer & | |
sleep 0.07 | |
killall TouchBarServer | |
elif [ "$1" == "disable" ]; then | |
launchctl unload /System/Library/LaunchDaemons/com.apple.touchbarserver.plist | |
else | |
echo -e "Usage:\n sudo $0 enable\n sudo $0 disable" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This script works with SIP disabled.