Skip to content

Commit

Permalink
Readd support for Ventura and Sonoma
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorgalvao committed Oct 2, 2024
1 parent 24930d6 commit d6917b0
Showing 1 changed file with 238 additions and 13 deletions.
251 changes: 238 additions & 13 deletions Workflow/info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,20 @@
<string>com.alfredapp.vitor.bannerbegone</string>
<key>connections</key>
<dict>
<key>56056996-E906-4F4A-8EA9-FBEF1B6A826A</key>
<key>05AD3A48-D930-49CD-A5AC-347A1AB01415</key>
<array>
<dict>
<key>destinationuid</key>
<string>1EA86C16-2EF5-4CE3-BA05-80343F02CBC5</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
<key>vitoclose</key>
<false/>
</dict>
</array>
<key>1EA86C16-2EF5-4CE3-BA05-80343F02CBC5</key>
<array>
<dict>
<key>destinationuid</key>
Expand All @@ -15,6 +28,56 @@
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
<key>sourceoutputuid</key>
<string>D8702124-F4BC-4C67-922B-77CF98FBE5D8</string>
<key>vitoclose</key>
<false/>
</dict>
<dict>
<key>destinationuid</key>
<string>E718C2BF-B0EB-4C56-9702-77B670797A22</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
<key>sourceoutputuid</key>
<string>E0D4923C-E97A-43B8-BA19-589D7E37DDB4</string>
<key>vitoclose</key>
<false/>
</dict>
<dict>
<key>destinationuid</key>
<string>50A1867F-C74D-4AF0-99A7-221EAFA68C77</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
<key>vitoclose</key>
<false/>
</dict>
</array>
<key>50A1867F-C74D-4AF0-99A7-221EAFA68C77</key>
<array>
<dict>
<key>destinationuid</key>
<string>B97685C4-B094-43A1-8C17-3256AA533C6F</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
<key>vitoclose</key>
<false/>
</dict>
</array>
<key>56056996-E906-4F4A-8EA9-FBEF1B6A826A</key>
<array>
<dict>
<key>destinationuid</key>
<string>05AD3A48-D930-49CD-A5AC-347A1AB01415</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
<key>vitoclose</key>
<false/>
</dict>
Expand All @@ -23,7 +86,7 @@
<array>
<dict>
<key>destinationuid</key>
<string>B0C35CAF-841A-4F23-8192-F4888C603092</string>
<string>05AD3A48-D930-49CD-A5AC-347A1AB01415</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
Expand Down Expand Up @@ -74,16 +137,30 @@
<key>escaping</key>
<integer>102</integer>
<key>script</key>
<string>// Helpers
function envVar(varName) {
return $.NSProcessInfo
.processInfo
.environment
.objectForKey(varName).js
}
// Main
Application("System Events")
<string>$.NSProcessInfo.processInfo.operatingSystemVersion.majorVersion</string>
<key>scriptargtype</key>
<integer>1</integer>
<key>scriptfile</key>
<string></string>
<key>type</key>
<integer>7</integer>
</dict>
<key>type</key>
<string>alfred.workflow.action.script</string>
<key>uid</key>
<string>05AD3A48-D930-49CD-A5AC-347A1AB01415</string>
<key>version</key>
<integer>2</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>concurrently</key>
<false/>
<key>escaping</key>
<integer>102</integer>
<key>script</key>
<string>Application("System Events")
.applicationProcesses.byName("NotificationCenter")
.windows[0]
.groups[0]
Expand All @@ -107,6 +184,52 @@ Application("System Events")
<key>version</key>
<integer>2</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>conditions</key>
<array>
<dict>
<key>inputstring</key>
<string></string>
<key>matchcasesensitive</key>
<false/>
<key>matchmode</key>
<integer>2</integer>
<key>matchstring</key>
<string>14</string>
<key>outputlabel</key>
<string>Sequoia+</string>
<key>uid</key>
<string>D8702124-F4BC-4C67-922B-77CF98FBE5D8</string>
</dict>
<dict>
<key>inputstring</key>
<string></string>
<key>matchcasesensitive</key>
<false/>
<key>matchmode</key>
<integer>2</integer>
<key>matchstring</key>
<string>12</string>
<key>outputlabel</key>
<string>Ventura+</string>
<key>uid</key>
<string>E0D4923C-E97A-43B8-BA19-589D7E37DDB4</string>
</dict>
</array>
<key>elselabel</key>
<string>Unsupported</string>
<key>hideelse</key>
<false/>
</dict>
<key>type</key>
<string>alfred.workflow.utility.conditional</string>
<key>uid</key>
<string>1EA86C16-2EF5-4CE3-BA05-80343F02CBC5</string>
<key>version</key>
<integer>1</integer>
</dict>
<dict>
<key>config</key>
<dict>
Expand Down Expand Up @@ -138,6 +261,73 @@ Application("System Events")
<key>version</key>
<integer>2</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>concurrently</key>
<false/>
<key>escaping</key>
<integer>102</integer>
<key>script</key>
<string>Application("System Events")
.applicationProcesses.byName("NotificationCenter")
.windows[0]
.groups[0]
.scrollAreas[0]
.uiElements[0]
.groups()
.map(banner =&gt; banner.actions().slice(-1)[0])
.forEach(banner =&gt; banner.perform())</string>
<key>scriptargtype</key>
<integer>1</integer>
<key>scriptfile</key>
<string></string>
<key>type</key>
<integer>7</integer>
</dict>
<key>type</key>
<string>alfred.workflow.action.script</string>
<key>uid</key>
<string>E718C2BF-B0EB-4C56-9702-77B670797A22</string>
<key>version</key>
<integer>2</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>soundname</key>
<string>Basso</string>
<key>systemsound</key>
<true/>
</dict>
<key>type</key>
<string>alfred.workflow.output.playsound</string>
<key>uid</key>
<string>B97685C4-B094-43A1-8C17-3256AA533C6F</string>
<key>version</key>
<integer>1</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>lastpathcomponent</key>
<false/>
<key>onlyshowifquerypopulated</key>
<false/>
<key>removeextension</key>
<false/>
<key>text</key>
<string>This requires macOS Ventura or later</string>
<key>title</key>
<string>Unsupportd macOS Version</string>
</dict>
<key>type</key>
<string>alfred.workflow.output.notification</string>
<key>uid</key>
<string>50A1867F-C74D-4AF0-99A7-221EAFA68C77</string>
<key>version</key>
<integer>1</integer>
</dict>
</array>
<key>readme</key>
<string>## Usage
Expand All @@ -149,6 +339,27 @@ Clear visible macOS notification banners via the `notclear` keyword.
Configure the [Hotkey](https://www.alfredapp.com/help/workflows/triggers/hotkey/) for faster triggering.</string>
<key>uidata</key>
<dict>
<key>05AD3A48-D930-49CD-A5AC-347A1AB01415</key>
<dict>
<key>xpos</key>
<real>235</real>
<key>ypos</key>
<real>45</real>
</dict>
<key>1EA86C16-2EF5-4CE3-BA05-80343F02CBC5</key>
<dict>
<key>xpos</key>
<real>410</real>
<key>ypos</key>
<real>50</real>
</dict>
<key>50A1867F-C74D-4AF0-99A7-221EAFA68C77</key>
<dict>
<key>xpos</key>
<real>590</real>
<key>ypos</key>
<real>320</real>
</dict>
<key>56056996-E906-4F4A-8EA9-FBEF1B6A826A</key>
<dict>
<key>xpos</key>
Expand All @@ -166,10 +377,24 @@ Configure the [Hotkey](https://www.alfredapp.com/help/workflows/triggers/hotkey/
<key>B0C35CAF-841A-4F23-8192-F4888C603092</key>
<dict>
<key>xpos</key>
<real>275</real>
<real>590</real>
<key>ypos</key>
<real>45</real>
</dict>
<key>B97685C4-B094-43A1-8C17-3256AA533C6F</key>
<dict>
<key>xpos</key>
<real>765</real>
<key>ypos</key>
<real>320</real>
</dict>
<key>E718C2BF-B0EB-4C56-9702-77B670797A22</key>
<dict>
<key>xpos</key>
<real>590</real>
<key>ypos</key>
<real>180</real>
</dict>
</dict>
<key>userconfigurationconfig</key>
<array>
Expand Down

0 comments on commit d6917b0

Please sign in to comment.