mirror of
https://github.com/nikdoof/dotfiles.git
synced 2025-12-11 16:52:26 +00:00
Add raycast scripts
This commit is contained in:
22
raycast/Documents/Raycast Scripts/viscosity-connect.applescript
Executable file
22
raycast/Documents/Raycast Scripts/viscosity-connect.applescript
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/usr/bin/osascript
|
||||
|
||||
# Required parameters:
|
||||
# @raycast.schemaVersion 1
|
||||
# @raycast.title Viscosity: Connect
|
||||
# @raycast.mode silent
|
||||
# @raycast.packageName Viscosity
|
||||
#
|
||||
# Optional parameters:
|
||||
# @raycast.icon images/viscosity.png
|
||||
# @raycast.needsConfirmation false
|
||||
# @raycast.argument1 { "type": "text", "placeholder": "Configuration" }
|
||||
#
|
||||
# Documentation:
|
||||
# @raycast.description Connect a VPN viscosity configuration.
|
||||
# @raycast.author Luigi Cardito (credits Achille Lacoin https://github.com/pomdtr)
|
||||
# @raycast.authorURL https://github.com/lcardito
|
||||
|
||||
on run argv
|
||||
tell application "Viscosity" to connect (item 1 of argv)
|
||||
return # Discard Output
|
||||
end run
|
||||
22
raycast/Documents/Raycast Scripts/viscosity-disconnect.applescript
Executable file
22
raycast/Documents/Raycast Scripts/viscosity-disconnect.applescript
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/usr/bin/osascript
|
||||
|
||||
# Required parameters:
|
||||
# @raycast.schemaVersion 1
|
||||
# @raycast.title Viscosity: Disconnect
|
||||
# @raycast.mode silent
|
||||
# @raycast.packageName Viscosity
|
||||
#
|
||||
# Optional parameters:
|
||||
# @raycast.icon images/viscosity.png
|
||||
# @raycast.needsConfirmation false
|
||||
# @raycast.argument1 { "type": "text", "placeholder": "Configuration" }
|
||||
#
|
||||
# Documentation:
|
||||
# @raycast.description Disconnect a VPN configuration.
|
||||
# @raycast.author Luigi Cardito (credits Achille Lacoin https://github.com/pomdtr)
|
||||
# @raycast.authorURL https://github.com/lcardito
|
||||
|
||||
on run argv
|
||||
tell application "Viscosity" to disconnect (item 1 of argv)
|
||||
return # Discard Output
|
||||
end run
|
||||
Reference in New Issue
Block a user