Added desktop script

This commit is contained in:
Michael Housh
2023-10-04 18:03:36 -04:00
parent 64b5e4b21c
commit e3ff780999
2 changed files with 22 additions and 1 deletions

21
scripts/scripts/desktop Executable file
View File

@@ -0,0 +1,21 @@
#!/bin/zsh
declare hide
declare show
zparseopts -D -E -K -- \
{h,-hide}=hide \
{s,-show}=show
if [ -n "$hide" ]; then
defaults write com.apple.finder CreateDesktop false && killall Finder
exit 0
fi
if [ -n "$show" ]; then
defaults write com.apple.finder CreateDesktop true && killall Finder
exit 0
fi
echo "Please pass in --hide | --show"
exit 1