How to Toggle WiFi on and Off with a Keyboard Shortcut on Mac
Once you set one up, you can use a keyboard shortcut to turn on or off your WiFi on a Mac, easily. Open Terminal. Copy paste this in: .
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
- Click on the wifi wave with an empty beer can
- How to Run Command Prompt Commands from a Windows Shortcut
- 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
- 7 extremely interesting Wifi features on Windows 10 not everyone knows
- How to Start Screensaver with a Keyboard Shortcut on Mac
Maybe you are interested
5 popular Auto Click software for computers today
Latest Roblox Clicker Simulator Codes 12/2024
How to use GS Auto Clicker, automatically click mouse on computer
How to use Auto Clicker Assist to automatically click the mouse
Instructions to fix double click error on computer mouse - Click once becomes twice
PowerToys will soon support creating app spaces and launching with just one click