diff --git a/triggers/hide-desktop-apps/README.md b/triggers/hide-desktop-apps/README.md new file mode 100644 index 0000000..123b122 --- /dev/null +++ b/triggers/hide-desktop-apps/README.md @@ -0,0 +1,3 @@ +# Hide Desktop Apps + +Hide all icons on your desktop when sharing your screen. diff --git a/triggers/hide-desktop-apps/assets/icon.png b/triggers/hide-desktop-apps/assets/icon.png new file mode 100644 index 0000000..eb7dfbb Binary files /dev/null and b/triggers/hide-desktop-apps/assets/icon.png differ diff --git a/triggers/hide-desktop-apps/config.json b/triggers/hide-desktop-apps/config.json new file mode 100644 index 0000000..2dd42a5 --- /dev/null +++ b/triggers/hide-desktop-apps/config.json @@ -0,0 +1,6 @@ +{ + "name": "Hide Desktop Apps", + "description": "Hide all icons on your desktop when sharing your screen.", + "platforms": ["macos"], + "language": "bash" +} diff --git a/triggers/hide-desktop-apps/screen-share-ended b/triggers/hide-desktop-apps/screen-share-ended new file mode 100755 index 0000000..e5a586c --- /dev/null +++ b/triggers/hide-desktop-apps/screen-share-ended @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +if [ -z "$TUPLE_TRIGGER_IS_SELF" ]; then + exit 0 +fi + +defaults write com.apple.finder CreateDesktop -bool true && killall Finder diff --git a/triggers/hide-desktop-apps/screen-share-started b/triggers/hide-desktop-apps/screen-share-started new file mode 100755 index 0000000..cf02df1 --- /dev/null +++ b/triggers/hide-desktop-apps/screen-share-started @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +if [ -z "$TUPLE_TRIGGER_IS_SELF" ]; then + exit 0 +fi + +defaults write com.apple.finder CreateDesktop -bool false && killall Finder