-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Gmail tab closing, hide discord, slack and notes
- Loading branch information
1 parent
12643fa
commit e509cad
Showing
20 changed files
with
113 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Close Gmail Tabs on Chrome | ||
|
||
This trigger will hide Gmail tabs on Chrome automatically when you share your display. | ||
|
||
This can be handy to save you from sharing private emails. | ||
|
||
If you're executing this trigger for the first time, `System Events` may prompt you for permission. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"name": "Close Gmail tabs on Chrome", | ||
"description": "Automatically close Gmail tabs when sharing your screen.", | ||
"platforms": ["macos"], | ||
"language": "applescript" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [ -n "$TUPLE_TRIGGER_IS_SELF" ]; then | ||
osascript -l JavaScript <<'END' | ||
var chrome = Application('Google Chrome'); | ||
if (chrome.running()) { | ||
var windows = chrome.windows(); | ||
for (var i = 0; i < windows.length; i++) { | ||
var tabs = windows[i].tabs(); | ||
for (var j = tabs.length - 1; j >= 0; j--) { | ||
var tab = tabs[j]; | ||
if (tab.url().includes("mail.google.com")) { | ||
tab.close(); | ||
} | ||
} | ||
} | ||
} | ||
END | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Hide Discord | ||
|
||
This trigger will hide the Discord.app automatically when you share your display. | ||
|
||
This can be handy to save you from showing private conversations. | ||
|
||
If you're executing this trigger for the first time, `System Events` may prompt you for permission. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"name": "Hide Discord.app", | ||
"description": "Automatically hide Discord.app when sharing your screen.", | ||
"platforms": ["macos"], | ||
"language": "applescript" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "Discord" to false | ||
END | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "Discord" to true | ||
END | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Hide Notes | ||
|
||
This trigger will hide the Notes.app automatically when you share your display. | ||
|
||
This can be handy to save you from showing your private notes. | ||
|
||
If you're executing this trigger for the first time, `System Events` may prompt you for permission. |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"name": "Hide Notes.app", | ||
"description": "Automatically hide Notes.app when sharing your screen.", | ||
"platforms": ["macos"], | ||
"language": "applescript" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "Notes" to false | ||
END | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "Notes" to true | ||
END | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Hide Slack | ||
|
||
This trigger will hide the Slack.app automatically when you share your display. | ||
|
||
This can be handy to save you from showing private conversations. | ||
|
||
If you're executing this trigger for the first time, `System Events` may prompt you for permission. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"name": "Hide Slack.app", | ||
"description": "Automatically hide Slack.app when sharing your screen.", | ||
"platforms": ["macos"], | ||
"language": "applescript" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "Slack" to false | ||
END | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "Slack" to true | ||
END | ||
fi |