Skip to content

Commit

Permalink
hooks -> triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
r00k committed Oct 26, 2023
1 parent 564047b commit 5d9f741
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions triggers/hide-messages/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Hide Messages

This hook will hide the Messages.app automatically when you go to share your display.
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.

When being executed for the first time, `System Events` will prompt for permissions.
If you're executing this trigger for the first time, `System Events` may prompt you for permission.
2 changes: 1 addition & 1 deletion triggers/hide-messages/screen-share-started
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

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

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

0 comments on commit 5d9f741

Please sign in to comment.