├── LICENSE.md ├── README.md ├── Wi-Fi.alfredworkflow ├── icon.png └── info.plist /LICENSE.md: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 ravelll 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ![wifi_workflow](https://user-images.githubusercontent.com/2294362/45082503-6f636200-b134-11e8-9486-41f7751acfe5.png) 2 | 3 | A Alfred Workflow to enabling/disabling/restarting Wi-Fi setting for macOS. 4 | 5 | ### Installation 6 | 7 | Clone this repository, and open Wi-Fi.alfredworkflow file on your alfred-able Mac. 8 | 9 | ``` 10 | $ git clone https://github.com/ravelll/wifi-workflow.git 11 | $ open wifi-workflow/Wi-Fi.alfredworkflow 12 | ``` 13 | 14 | ### Usage 15 | 16 | Execute the command `wifi` with a subcommand, `on`, `off`, or `restart`. 17 | 18 | ### License 19 | 20 | [The MIT license.](https://github.com/ravelll/wifi-workflow/blob/master/LICENSE.md) 21 | -------------------------------------------------------------------------------- /Wi-Fi.alfredworkflow: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ravelll/wifi-workflow/bb679988e076ef1b0b2f223e81bcbc75520bedc4/Wi-Fi.alfredworkflow -------------------------------------------------------------------------------- /icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ravelll/wifi-workflow/bb679988e076ef1b0b2f223e81bcbc75520bedc4/icon.png -------------------------------------------------------------------------------- /info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | bundleid 6 | com.ravelll.wifi 7 | category 8 | Tools 9 | connections 10 | 11 | 247E070E-54F3-46F0-A6C0-39F711158178 12 | 13 | 14 | destinationuid 15 | 16039760-F173-4AB8-9C73-DA7401D5DE23 16 | modifiers 17 | 0 18 | modifiersubtext 19 | 20 | vitoclose 21 | 22 | 23 | 24 | 25 | createdby 26 | ravelll 27 | description 28 | Control Wi-Fi setting 29 | disabled 30 | 31 | name 32 | Wi-Fi 33 | objects 34 | 35 | 36 | config 37 | 38 | argumenttrimmode 39 | 0 40 | argumenttype 41 | 1 42 | fixedorder 43 | 44 | items 45 | [{"title":"on","arg":"on","subtitle":"Turn WiFi On"},{"title":"off","arg":"off","subtitle":"Turn WiFi off"},{"title":"restart","arg":"restart","subtitle":"Restart WiFi"}] 46 | keyword 47 | wifi 48 | runningsubtext 49 | 50 | subtext 51 | on / off / restart 52 | title 53 | Control Wi-Fi setting 54 | withspace 55 | 56 | 57 | type 58 | alfred.workflow.input.listfilter 59 | uid 60 | 247E070E-54F3-46F0-A6C0-39F711158178 61 | version 62 | 1 63 | 64 | 65 | config 66 | 67 | concurrently 68 | 69 | escaping 70 | 0 71 | script 72 | if [ "{query}" = "restart" ]; then 73 | networksetup -setairportpower en0 off 74 | networksetup -setairportpower en0 on 75 | else 76 | networksetup -setairportpower en0 {query} 77 | fi 78 | scriptargtype 79 | 0 80 | scriptfile 81 | 82 | type 83 | 0 84 | 85 | type 86 | alfred.workflow.action.script 87 | uid 88 | 16039760-F173-4AB8-9C73-DA7401D5DE23 89 | version 90 | 2 91 | 92 | 93 | readme 94 | This workflow give you function to control Wi-Fi setting to on/off/restart. 95 | uidata 96 | 97 | 16039760-F173-4AB8-9C73-DA7401D5DE23 98 | 99 | xpos 100 | 500 101 | ypos 102 | 60 103 | 104 | 247E070E-54F3-46F0-A6C0-39F711158178 105 | 106 | xpos 107 | 300 108 | ypos 109 | 60 110 | 111 | 112 | version 113 | 0.0.3 114 | webaddress 115 | http://ravelll.hatenadiary.jp/ 116 | 117 | 118 | --------------------------------------------------------------------------------