File tree Expand file tree Collapse file tree 5 files changed +19
-19
lines changed
Expand file tree Collapse file tree 5 files changed +19
-19
lines changed Original file line number Diff line number Diff line change @@ -6,15 +6,15 @@ This is an Alfred 2 workflow that makes it easy to manage VPN connection.
66
770. Construct VPN service with System Preferences.app
881. Type `vpn` into Alfred followed by a space.
9- 2. Begin typing the name of the device you want to toggle VPN service.
9+ 2. Begin typing the name of the device you want to switch VPN service.
10103. When you see the service you want, select it from the list as usual.
11- 4. Press return to toggle the service.
11+ 4. Press return to switch the service.
1212
1313# Installation
1414
15- Download latest `alfred-toggle -vpn.alfredworkflow` from
16- [Release page](https://github.com/uchida/alfred-toggle -vpn/releases).
17- Open `alfred-toggle -vpn.alfredworkflow` with Alfred.
15+ Download latest `alfred-switch -vpn.alfredworkflow` from
16+ [Release page](https://github.com/uchida/alfred-switch -vpn/releases).
17+ Open `alfred-switch -vpn.alfredworkflow` with Alfred.
1818
1919# License
2020
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ end tell
1616_END_OF_SCRIPT_
1717}
1818
19- toggle_node () {
19+ switch_node () {
2020 local service=$1
2121 osascript << _END_OF_SCRIPT_
2222tell application "System Events"
@@ -41,7 +41,7 @@ for service in $(get_vpnservices); do
4141 cat << _END_OF_ITEM_
4242 <item uid="$service " arg="$service ">
4343 <title>$service </title>
44- $( toggle_node $service )
44+ $( switch_node $service )
4545 </item>
4646_END_OF_ITEM_
4747done
File renamed without changes.
Original file line number Diff line number Diff line change 11{
22 "version" : 1.0 ,
3- "remote_json" : " https://github.com/uchida/alfred-toggle -vpn/raw/master/update.json" ,
4- "download_url" : " https://github.com/uchida/alfred-toggle -vpn/releases/download/20141121/alfred-toggle -vpn.alfredworkflow" ,
3+ "remote_json" : " https://github.com/uchida/alfred-switch -vpn/raw/master/update.json" ,
4+ "download_url" : " https://github.com/uchida/alfred-switch -vpn/releases/download/20141121/alfred-switch -vpn.alfredworkflow" ,
55 "description" : " change workflow name."
66}
Original file line number Diff line number Diff line change 1- bundleid : net.turbare.toggle -vpn
1+ bundleid : net.turbare.switch -vpn
22category : Tools
33connections :
44 select_vpn :
5- - destinationuid : toggle_vpn
6- toggle_vpn : []
5+ - destinationuid : switch_vpn
6+ switch_vpn : []
77createdby : Akihiro Uchida
8- description : Toggle VPN connection
8+ description : switch VPN connection
99disabled : false
10- name : alfred-toggle -vpn
10+ name : alfred-switch -vpn
1111objects :
1212- config :
13- applescript : !include 'toggle_vpn '
13+ applescript : !include 'switch_vpn '
1414 type : alfred.workflow.action.applescript
15- uid : toggle_vpn
15+ uid : switch_vpn
1616- config :
1717 argumenttype : 1
1818 keyword : vpn
1919 runningsubtext : Finding VPN devices
2020 script : !include 'select_vpn'
2121 subtext : Start typing a VPN service name...
22- title : Toggle a VPN service
22+ title : switch a VPN service
2323 type : alfred.workflow.input.scriptfilter
2424 uid : select_vpn
2525readme : !include 'README'
2626uidata :
2727 select_vpn :
2828 ypos : 30
29- toggle_vpn :
29+ switch_vpn :
3030 ypos : 30
31- webaddress : turbare.net
31+ webaddress : github.com/uchida/alfred-switch-vpn
You can’t perform that action at this time.
0 commit comments