Skip to content

Commit

Permalink
Merge pull request #7 from tupleapp/scd-hide-desktop-apps
Browse files Browse the repository at this point in the history
Add trigger for hiding desktop icons
  • Loading branch information
mcasper authored Oct 26, 2023
2 parents f5193b6 + 1c743e6 commit b8e08c8
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 0 deletions.
3 changes: 3 additions & 0 deletions triggers/hide-desktop-apps/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Hide Desktop Apps

Hide all icons on your desktop when sharing your screen.
Binary file added triggers/hide-desktop-apps/assets/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions triggers/hide-desktop-apps/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "Hide Desktop Apps",
"description": "Hide all icons on your desktop when sharing your screen.",
"platforms": ["macos"],
"language": "bash"
}
7 changes: 7 additions & 0 deletions triggers/hide-desktop-apps/screen-share-ended
Original file line number Diff line number Diff line change
@@ -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
7 changes: 7 additions & 0 deletions triggers/hide-desktop-apps/screen-share-started
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b8e08c8

Please sign in to comment.