mathiasbynens / mathiasbynens/dotfiles
[.macos] Hide battery percentage (com.apple.menuextra.battery user defaults)
Nobody has claimed this yet.
- Dominant language
- Shell
- Stars
- 31.5k
- Forks
- 8.4k
- PR merge metrics
- No merged PRs in 30d
Description
In reply to [this commit](https://github.com/mathiasbynens/dotfiles/commit/d91d9e8fbd0f4dd21444ac6166d0b299aedb23cb#comments), it is still possible to hide battery percentage [at least on OS X 10.9.5 Mavericks]. However, display remaining battery time has been removed by Apple.
``` shell
defaults write com.apple.menuextra.battery ShowPercent -bool false # Hide battery percentage.
```
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Inspect the .macos configuration and compare its battery-related defaults with the ShowPercent command in the issue. Add the setting if it is absent, then verify on macOS that the menu bar hides the battery percentage while preserving the remaining battery indicator.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- macos, shell
- Domain
- operating-systems
- Issue type
- Feature
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 48/100