Skip to content

Commit 730fdc9

Browse files
committed
rename toggle-vpn to switch-vpn
1 parent 5f09323 commit 730fdc9

File tree

5 files changed

+19
-19
lines changed

5 files changed

+19
-19
lines changed

README

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ This is an Alfred 2 workflow that makes it easy to manage VPN connection.
66

77
0. Construct VPN service with System Preferences.app
88
1. 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.
1010
3. 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

select_vpn

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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_
2222
tell 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_
4747
done
File renamed without changes.

update.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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
}

workflow.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
bundleid: net.turbare.toggle-vpn
1+
bundleid: net.turbare.switch-vpn
22
category: Tools
33
connections:
44
select_vpn:
5-
- destinationuid: toggle_vpn
6-
toggle_vpn: []
5+
- destinationuid: switch_vpn
6+
switch_vpn: []
77
createdby: Akihiro Uchida
8-
description: Toggle VPN connection
8+
description: switch VPN connection
99
disabled: false
10-
name: alfred-toggle-vpn
10+
name: alfred-switch-vpn
1111
objects:
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
2525
readme: !include 'README'
2626
uidata:
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

0 commit comments

Comments
 (0)