Skip to content

umar14/MemBar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MemBar

A lightweight macOS menu bar app that shows live RAM usage — color-coded by memory pressure, updated every 2 seconds, no Dock icon.

6.4 GB    ← green / yellow / red depending on pressure

Click the indicator to open a detail popover:

┌─────────────────────────────────┐
│  MEMORY  PRESSURE               │
│  6.42 GB          / 16 GB total │
│  ████████████░░░░░░░░░░░░░░░░   │
│  Wired: 2.1 GB          41%     │
│ ─────────────────────────────── │
│  Wi-Fi              192.168.1.5 │
│  [ Quit MemBar ]                │
└─────────────────────────────────┘

Requirements

macOS 13 Ventura or later
Xcode CLT xcode-select --install
Swift Bundled with CLT (≥ 5.9)

Quick start

git clone https://github.com/umar14/MemBar
cd MemBar
chmod +x build.sh
./build.sh          # compile → run immediately

Install as a login item (auto-start on login)

git clone https://github.com/umar14/MemBar
cd MemBar
chmod +x build.sh
./build.sh install

This compiles a release binary to ~/.local/bin/MemBar and registers a launchd plist so it starts automatically at login.

Uninstall

./build.sh remove

Memory explained

Field What it means
Used Active + wired + compressed pages — RAM currently in use
Wired Memory locked by the kernel and drivers; cannot be swapped or compressed
Pressure % Used ÷ total — how hard the system is working to satisfy memory demand

Color coding

Color Pressure
🟢 Green < 60%
🟡 Yellow 60 – 80%
🔴 Red > 80%

Project layout

MemBar/
├── Package.swift           ← Swift Package Manager manifest
├── build.sh                ← build / install / remove script
└── Sources/
    └── MemBar/
        └── main.swift      ← entire app (~260 lines)

About

A lightweight macOS menu bar app that shows live RAM usage.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors