Skip to content
uShaukat3737Public

About

Free macOS menu bar app that turns your MacBook Pro's Touch Bar off and on with one click or ⌃⌥⌘T.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

BarNap

A tiny, free menu bar app that turns your MacBook Pro's Touch Bar off and on with one click or a keyboard shortcut.

Click the BarNap icon (a small rectangle) in your menu bar to get two options:

BarNap menu bar icon, marked by a red arrow, with its menu open showing Turn Touch Bar Off and Quit BarNap

  • Turn Touch Bar Off / On: Off makes the Touch Bar go black (fully hidden, Control Strip included). On brings it back.
  • Quit BarNap

⌃⌥⌘T (Control + Option + Command + T) also switches it off and on from any app.

Quitting BarNap always brings the Touch Bar back.

No account, no tracking, no network access. Under 1 MB.

Requirements

  • A MacBook Pro with a Touch Bar (Intel or Apple Silicon)
  • macOS 13 Ventura or newer

Install

There are two ways. Pick one.

Option A: Download the DMG Option B: Clone and run install.sh
Best for Most people People comfortable with Terminal
Needs Nothing Apple Command Line Tools
macOS security warning Yes, once (steps below) No

Option A: Download the DMG

  1. Download BarNap.dmg from the latest release.
  2. Open the DMG and drag BarNap into Applications.
  3. Open BarNap from Applications. The first time, macOS blocks it. That's expected; follow the steps below once.

First launch: "BarNap" Not Opened

BarNap is free and isn't signed with a paid Apple Developer ID, so macOS shows this warning the first time:

BarNap Not Opened dialog with Done and Move to Bin buttons

  1. Click Done. Don't click "Move to Trash/Bin", which deletes the app.

  2. Open System Settings → Privacy & Security and scroll down to the Security section.

  3. Next to "BarNap" was blocked to protect your Mac., click Open Anyway.

    Privacy and Security settings showing BarNap was blocked, with an Open Anyway button
  4. A second warning, Open "BarNap"?, appears. Click Open Anyway.

    Open BarNap? dialog with Move to Bin, Open Anyway and Done buttons
  5. Enter your Mac password (or use Touch ID) to confirm.

The rectangle icon appears in your menu bar. From now on BarNap opens normally.

On macOS 13 Ventura or 14 Sonoma, you can instead right-click BarNap in Applications → Open → Open.

Prefer Terminal? This one command replaces steps 1–5:

xattr -dr com.apple.quarantine /Applications/BarNap.app

Option B: Clone and run install.sh

This builds BarNap on your own Mac from the source code in this repo, so macOS shows no security warning.

git clone https://github.com/uShaukat3737/BarNap.git
cd BarNap
./install.sh

The script builds BarNap.app inside the cloned folder, copies it into Applications and opens it. If it says you need the Command Line Tools, run xcode-select --install, wait for that install to finish, then run ./install.sh again.

To update later, run git pull and then ./install.sh again.

Start at login (optional)

System Settings → General → Login Items → + → choose BarNap.

Uninstall

Click the BarNap menu bar icon → Quit BarNap, then delete /Applications/BarNap.app.

Build from source (developers)

./scripts/test.sh     # run tests
./scripts/bundle.sh   # build BarNap.app (Intel + Apple Silicon)
./scripts/dmg.sh      # build BarNap.dmg
./scripts/make-icon.sh  # regenerate the app icon from scripts/draw-icon.swift

How it works

BarNap presents an empty, full-width "system modal" Touch Bar on top of everything, which leaves the Touch Bar black. This uses private Apple APIs (the same technique other Touch Bar utilities use), so a future macOS update could break it. If it stops working, please open an issue.

License

MIT. Free for everyone.

About

Free macOS menu bar app that turns your MacBook Pro's Touch Bar off and on with one click or ⌃⌥⌘T.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages