Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Toggle AirPort on and off using keyboard shortcuts System
This is the simplest way I've found to toggle the AirPort card on and off without using third party applications or too many buttons. Hopefully others will appreciate this function as I do. Note: This function is tailored to a MacBook, as the F5 and F6 keys have no predetermined function on these machines. Other machines may need the shortcut keys to be edited.
  1. Create two keyboard shortcuts. Go to the Apple menu » System Preferences » Keyboard & Mouse » Keyboard Shortcuts tab. Click the plus sign at the bottom of the window, and select All Applications from the pop-up menu in the next dialog. In the Menu Title box, type Turn AirPort On with that exact case and spelling. Set the Keyboard Shortcut to F5, then click Add. Click the plus sign again, leave the pop-up menu set to All Applications, and in the Menu Title box, type Turn AirPort Off with the shortcut key also set to F5 -- only one of these functions will be displayed at a time.
  2. In the Keyboard Navigation section of the same window, change the 'Move focus to status menus in the menu bar' to F6 (and check the box to enable this shortcut, if it's not yet enabled).
  3. Make sure the AirPort icon is in your menu bar. Then hold down the Command key and drag the AirPort Menu bar icon as far to the left as possible. This insures that it is the first to be selected when you move focus to the menu bar.
  4. Finally, restart your system.
After your Mac reboots, press F6 to move focus to the menu bar, and F5 to toggle AirPort on or off, depending on its current state.
    •    
  • Currently 2.27 / 5
  You rated: 2 / 5 (11 votes cast)
 
[27,122 views]  

Toggle AirPort on and off using keyboard shortcuts | 5 comments | Create New Account
Click here to return to the 'Toggle AirPort on and off using keyboard shortcuts' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Toggle AirPort on and off using keyboard shortcuts
Authored by: asmeurer on Oct 17, '08 08:30:44AM

This is really sad that Apple won't let us set keyboard shortcuts to the menu icons the way we can regular menu items or even contextual menu items.



[ Reply to This | # ]
Toggle AirPort on and off using keyboard shortcuts
Authored by: paul h on Oct 17, '08 08:31:15AM
Nice hint, but it might have a conflict with this hint: http://www.macosxhints.com/article.php?story=20050706194219822

It seems there are multiple menu bar hints that require something to be the "leftmost item".



[ Reply to This | # ]
Toggle AirPort on and off using keyboard shortcuts
Authored by: Cobalt Jacket on Oct 17, '08 11:40:17AM
You'll have to find a way to bind the keys, but one thing you can do is just create shell script that executes the following commands:

To deactivate:

sudo ifconfig en1 down

To activate:

sudo ifconfig en1 up

[ Reply to This | # ]

Toggle AirPort on and off using keyboard shortcuts
Authored by: Storm608 on Oct 18, '08 06:35:43AM

Seems to me that right clicking on the airport icon in the menu bar and clicking on Turn AirPort Off is just as easy.



[ Reply to This | # ]
Toggle AirPort on and off using keyboard shortcuts
Authored by: garythemacguy on Oct 18, '08 07:21:45AM

An ordinary left-click works just as well.

I guess some people don't know about, or don't have sufficient space for, having the AirPort icon in the menu bar.



[ Reply to This | # ]