Skip to content

Commit f897107

Browse files
lcarditolcardito
and
lcardito
authored
Add viscosity commands (#324)
Co-authored-by: lcardito <[email protected]>
1 parent d3a5985 commit f897107

6 files changed

+87
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
*.xcodeproj
55
xcuserdata/
66
.swiftpm
7+
.idea
50.9 KB
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/usr/bin/osascript
2+
3+
# Required parameters:
4+
# @raycast.schemaVersion 1
5+
# @raycast.title Viscosity: Connect All
6+
# @raycast.mode silent
7+
# @raycast.packageName Viscosity
8+
#
9+
# Optional parameters:
10+
# @raycast.icon images/viscosity.png
11+
# @raycast.needsConfirmation false
12+
#
13+
# Documentation:
14+
# @raycast.description Connect all unconnected VPN configurations.
15+
# @raycast.author Luigi Cardito (credits Achille Lacoin https://github.com/pomdtr)
16+
# @raycast.authorURL https://github.com/lcardito
17+
18+
on run argv
19+
tell application "Viscosity" to connectall
20+
return # Discard Output
21+
end run
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/osascript
2+
3+
# Required parameters:
4+
# @raycast.schemaVersion 1
5+
# @raycast.title Viscosity: Connect
6+
# @raycast.mode silent
7+
# @raycast.packageName Viscosity
8+
#
9+
# Optional parameters:
10+
# @raycast.icon images/viscosity.png
11+
# @raycast.needsConfirmation false
12+
# @raycast.argument1 { "type": "text", "placeholder": "Configuration" }
13+
#
14+
# Documentation:
15+
# @raycast.description Connect a VPN viscosity configuration.
16+
# @raycast.author Luigi Cardito (credits Achille Lacoin https://github.com/pomdtr)
17+
# @raycast.authorURL https://github.com/lcardito
18+
19+
on run argv
20+
tell application "Viscosity" to connect (item 1 of argv)
21+
return # Discard Output
22+
end run
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/usr/bin/osascript
2+
3+
# Required parameters:
4+
# @raycast.schemaVersion 1
5+
# @raycast.title Viscosity: Disconnect All
6+
# @raycast.mode silent
7+
# @raycast.packageName Viscosity
8+
#
9+
# Optional parameters:
10+
# @raycast.icon images/viscosity.png
11+
# @raycast.needsConfirmation false
12+
#
13+
# Documentation:
14+
# @raycast.description Disconnect all connected VPN configurations.
15+
# @raycast.author Luigi Cardito (credits Achille Lacoin https://github.com/pomdtr)
16+
# @raycast.authorURL https://github.com/lcardito
17+
18+
on run argv
19+
tell application "Viscosity" to disconnectall
20+
return # Discard Output
21+
end run
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/usr/bin/osascript
2+
3+
# Required parameters:
4+
# @raycast.schemaVersion 1
5+
# @raycast.title Viscosity: Disconnect
6+
# @raycast.mode silent
7+
# @raycast.packageName Viscosity
8+
#
9+
# Optional parameters:
10+
# @raycast.icon images/viscosity.png
11+
# @raycast.needsConfirmation false
12+
# @raycast.argument1 { "type": "text", "placeholder": "Configuration" }
13+
#
14+
# Documentation:
15+
# @raycast.description Disconnect a VPN configuration.
16+
# @raycast.author Luigi Cardito (credits Achille Lacoin https://github.com/pomdtr)
17+
# @raycast.authorURL https://github.com/lcardito
18+
19+
on run argv
20+
tell application "Viscosity" to disconnect (item 1 of argv)
21+
return # Discard Output
22+
end run

0 commit comments

Comments
 (0)