Feature req: Show/Hide wifi status in menu

Open
#85 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
bash, shell

Research direction

Start with the Network preferences behavior and the defaults system, using the com.apple.systemuiserver settings and NSStatusItem Visible com.apple.menuextra.airport key shown in the issue. Determine the command-line incantation that toggles the Wi-Fi menu-bar status, then verify that the setting changes as expected.

Written by the indexing model from the issue text.

Description

enhancement

Not sure if this is easy/hard/impossible, but I'd like a scripted way to toggle the "Show Wi-Fi status in menu bar" setting from the Network preferences screen. I think this uses the defaults system and updates something like NSStatusItem Visible com.apple.menuextra.airport" = 1; but I don't know the proper incantation to simulate the Preferences Pane behavior via command line.

  "com.apple.systemuiserver" =     {
        "NSStatusItem Visible Siri" = 0;
        "NSStatusItem Visible com.apple.menuextra.airport" = 1;
        "NSStatusItem Visible com.apple.menuextra.battery" = 1;
        "NSStatusItem Visible com.apple.menuextra.bluetooth" = 1;
        "NSStatusItem Visible com.apple.menuextra.clock" = 1;
        "NSStatusItem Visible com.apple.menuextra.textinput" = 1;
        "__NSEnableTSMDocumentWindowLevel" = 1;
        "last-messagetrace-stamp" = "497807700.002411";
        menuExtras =         (
            "/System/Library/CoreServices/Menu Extras/Clock.menu",
            "/System/Library/CoreServices/Menu Extras/TextInput.menu",
            "/System/Library/CoreServices/Menu Extras/Bluetooth.menu",
            "/System/Library/CoreServices/Menu Extras/Battery.menu",
            "/System/Library/CoreServices/Menu Extras/AirPort.menu"
        );
    };
Dominant language
Shell
Stars
9.9k
Forks
317
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rgcr/m-cli

All issues in rgcr/m-cli

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.