Created
February 16, 2017 15:29
-
-
Save krhoyt/0888c34d4da6f8e481b2f0670d03474d to your computer and use it in GitHub Desktop.
Toggle clear desktop for presentations or screen recordings.
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 | |
file="present.txt" | |
if [ -f "$file" ] | |
then | |
rm $file | |
defaults write com.apple.finder CreateDesktop true | |
killall Finder | |
else | |
echo "You got this." > $file | |
defaults write com.apple.finder CreateDesktop false | |
killall Finder | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment