todd-dsm / mac-ops

QnD Automation to build a MacBook Pro for DevOps
MIT License
11 stars 7 forks source link

battery percentage is not displaying big-sur #39

Open todd-dsm opened 3 years ago

todd-dsm commented 3 years ago

---

Show battery percentage

---

printInfo "Show battery percentage..."

defaults read com.apple.menuextra.battery ShowPercent

defaults write com.apple.menuextra.battery ShowPercent -string 'YES'

tkothe commented 3 years ago

yeah, I'd also like to know where that setting is stored in Big Sur now... I was able to manually change it in the System Preferences UI, but no luck yet finding what underlying defaults write setting it changed.

KostyaEsmukov commented 2 years ago

defaults write ~/Library/Preferences/ByHost/com.apple.controlcenter.plist BatteryShowPercentage -bool true seems to work in Big Sur.

todd-dsm commented 2 years ago

@KostyaEsmukov just tested on the latest Big Sur (11.6.1 (20G224)) and it works as you described it. I'll close this issue once it's coded up on the Big Sur branch.

Thank you!