How to Toggle WiFi on and Off with a Keyboard Shortcut on Mac
Part 1 of 2:
Creating the Action
- Open Terminal. Copy paste this in: networksetup -listnetworkserviceorder.
- Remember the number that shows the WiFi. Then, you can close Terminal and open Automator.
- Choose a type for your document. Click on Quick Action and Choose.
- Search for run shell script in the search bar on the left. Double click on it.
- Make sure the top section is correct on the right: Workflow receives no input in any application.
- Copy and paste the following script into the section of 'Run Shell Script,' substituting 'X' with any number that you found the WiFi port to be earlier. The script is networksetup -getairportpower enX .
- Click on Run in the top right corner. See if your WiFi turns off. You might need to wait a few seconds. If it works, click on the X and save the action, and name it something obvious like 'WiFi Toggle.' Then, proceed to the next section.
Part 2 of 2:
Creating the Keyboard Shortcut.
- Open System Preferences > Keyboard. At the top, click on Shortcuts.
- Click on Services. Scroll to the very bottom until you find the action that you just created.
- Click on the None to the right of the name. Then, click on Add Shortcut.
- Type in your shortcut. You might use Ctrl+⌥ Opt+⌘ Cmd+W. Control Option Command W). Make sure the shortcut is not a common shortcut.
- Test your shortcut. It should work!
4.1 ★ | 266 Vote
You should read it
- Why use Windows 10 Action Center instead of Settings app?
- Difference between WiFi 5, WiFi 6 and WiFi 6E
- What is WiFi 6E? How is WiFi 6E different from WiFi 6?
- How to change the default shortcut in Windows 10
- 19 free Photoshop Action download sites
- What is WiFi 6? What is WiFi 6E? Things you need to know about WiFi 6 and WiFi 6E
- How to Set a Keyboard Shortcut to Open Spotlight
- How to turn on and turn off Wifi on laptop very fast
May be interested
- Windows 10 is about to change the keyboard layout easily with Keyboard Shortcut Managerthe microsoft powertoys development team recently revealed information they are deploying to test a new keyboard manager tool
- Quick shortcut for Coc Coc web browserquick shortcut is the way you use the keyboard with shortcuts instead of using the mouse. and surely it will help you work faster when using coc coc browser. moreover, it helps you look more professional when using a computer.
- How to Center Text on Microsoft Wordmicrosoft word offers a ton of document customization features, so much so that in fact, you'll have trouble figuring out how to do simple tasks like centering text. luckily, once you know it, it's pretty easy to remember. just click the 'center' option below the 'paragraph' label at the top of the page (or press ctrl+e, which is the keyboard shortcut to toggle between center and left alignment).
- Difference between WiFi 5, WiFi 6 and WiFi 6Ehaving fast wifi has become indispensable in our daily lives. from surfing the internet and working from home to online gaming and streaming netflix, it all depends on a strong wifi connection.
- Summary of useful keyboard shortcuts in exceltips make would like to share with you the accounting, office summarizing the shortcuts in excel 2007, 2010 which are very useful as follows
- Learn about the keyboard shortcut Ctrl + Alt + Delete, the powerful key phrase on Windowsthe keyboard shortcut ctrl + alt + delete was created by the ibm software engineering team in the 1980s and 1981 to boot the computer faster whenever the software test fails.
- Keyboard shortcut in Excel, how to delete lines in Excel with keyboard shortcutskeyboard shortcut in excel, how to delete lines in excel with keyboard shortcuts. normally, when working with excel if you want to delete a certain line, you will select all the rows then right-click and select delete. but instead of manipulating the mouse you have t
- Summary of convenient Facebook shortcuts for Windows and Macif you regularly use social networking facebook, you will want to navigate to the menus you need in the fastest way to save time. the following shortcut keys will help you master facebook right away with your computer keyboard instead of having to navigate with your mouse.
- What is WiFi 6E? How is WiFi 6E different from WiFi 6?technology is always developing very quickly, when wifi 6 was just popular, the new standard wifi 6e was officially launched. so what is wifi 6e? wifi 6e is nothing different than wifi 6, invite you to find out.
- Shortcut Shutdown Win 10 - Turn off Windows 10 with an extremely fast shortcutusing keyboard shortcuts in windows 10 helps us save time and use the computer to look cooler. in her following article, tipsmake.com shares readers about the important shortcut in windows that any user should know - shortcut shutdown (shutdown).