Skip to content

Instantly share code, notes, and snippets.

View Sam0230's full-sized avatar
💭
I may be slow to respond.

Sam0230

💭
I may be slow to respond.
View GitHub Profile
@Sam0230
Sam0230 / touchBar.sh
Last active July 31, 2021 18:31 — forked from JamesMarino/TouchBar
Enable or disable the touch bar.
#!/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"