Skip to content

Commit

Permalink
Merge pull request #9 from r00k/main
Browse files Browse the repository at this point in the history
Add trigger to hide Messages.app
  • Loading branch information
mcasper authored Oct 26, 2023
2 parents 7157801 + 5d9f741 commit 8256ecc
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 0 deletions.
7 changes: 7 additions & 0 deletions triggers/hide-messages/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Hide Messages

This trigger will hide the Messages.app automatically when you share your display.

This can be handy to potentially save you from an embarassing moment.

If you're executing this trigger for the first time, `System Events` may prompt you for permission.
Binary file added triggers/hide-messages/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-messages/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "Hide Messages.app",
"description": "Automatically hide Messages.app when sharing your screen.",
"platforms": ["macos"],
"language": "applescript"
}
7 changes: 7 additions & 0 deletions triggers/hide-messages/screen-share-started
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

if [ -n "$TUPLE_TRIGGER_IS_SELF" ]; then
osascript <<END
tell application "System Events" to set visible of application process "Messages" to false
END
fi
7 changes: 7 additions & 0 deletions triggers/hide-messages/screen-share-stop
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

if [ -n "$TUPLE_TRIGGER_IS_SELF" ]; then
osascript <<END
tell application "System Events" to set visible of application process "Messages" to true
END
fi

0 comments on commit 8256ecc

Please sign in to comment.