Skip to content

Clamshell Toggle 2.0 — compact menu bar icon + reliability upgrades - #1

Merged
ganya002 merged 6 commits into
mainfrom
upgrade/menu-bar-icon-v2
Sep 9, 2026
Merged

ganya002 merged 6 commits into
mainfrom
upgrade/menu-bar-icon-v2

Conversation

@ganya002

@ganya002 ganya002 commented Sep 9, 2026

Copy link
Copy Markdown
Owner

What changed

  • Replace the wide Clamshell ON/OFF text with a compact square menu bar icon
  • Laptop icon when Clamshell Mode is ON, moon icon for normal sleep, question mark for unreadable state
  • Cleaner native menu with current mode, battery percentage, and power source
  • Warning when sleep is disabled while running on battery
  • Automatic status refresh every 60 seconds and whenever the menu opens
  • Better handling of pmset failures instead of silently assuming OFF
  • Installer now preserves the current sleep state instead of enabling Clamshell Mode as a permission test
  • Tighten sudoers from wildcard disablesleep * to only disablesleep 0 and disablesleep 1
  • Validate the sudoers rule with visudo
  • Uninstaller restores normal sleep before removing permissions
  • Version bump to 2.0.0
  • Add macOS GitHub Actions validation for Swift, plist, and shell syntax
  • Rewrite README for the new behavior

This keeps the utility tiny and native while making it much less intrusive in a crowded macOS menu bar.

@ganya002
ganya002 merged commit 35ac7c5 into main Sep 9, 2026
1 check passed
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.

1 participant