mathiasbynens / mathiasbynens/dotfiles

[.macos] Hide battery percentage (com.apple.menuextra.battery user defaults)

Open
#701 6 comments 0 reactions 0 assignees View on GitHub

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

  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.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.