Skip to content

fix: add show/hide wifi status in menu bar to wifi plugin (#85) - #216

Open
Linboss9 wants to merge 1 commit into
rgcr:mainfrom
Linboss9:fix/85-wifi-menubar
Open

fix: add show/hide wifi status in menu bar to wifi plugin (#85)#216
Linboss9 wants to merge 1 commit into
rgcr:mainfrom
Linboss9:fix/85-wifi-menubar

Conversation

@Linboss9

Copy link
Copy Markdown

Description

Resolves #85.

This PR adds support for showing and hiding the Wi-Fi status icon in the macOS menu bar via plugins/wifi.

Changes Made

  • Added macOS version check to handle SystemUIServer (macOS <=10.15) and ControlCenter (macOS 11+).
  • Implemented wifi_show_menu() (--showmenu) to show the Wi-Fi status item in the menu bar.
  • Implemented wifi_hide_menu() (--hidemenu) to hide the Wi-Fi status item in the menu bar.
  • Implemented wifi_menu_status() (--menustatus) to query the visibility status.
  • Added --menubar [show|hide|status] option aliases.
  • Added unit tests in tests/test_wifi.sh.

Verification

  • Verified ./plugins/wifi --help and ./plugins/wifi --menustatus.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature req: Show/Hide wifi status in menu

1 participant