Skip to content
mik3swPublic

Latest commit

 

History

49 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OneClick icon

OneClick

Handy macOS settings and actions, one click away in your menu bar.

Latest release Downloads macOS 26+ Swift 6 SwiftUI License: MIT Stars

Download OneClick · Features · Custom items · Build from source

OneClick menu bar panel and Settings window on a MacBook Air

Highlights

  • Control Center–style panel with Liquid Glass tiles that show the real state of your Mac
  • 11 built-in toggles and actions: hide the desktop, Dock or menu bar, Dark Mode, Low Power Mode, Keep Awake and more
  • Your own toggles, buttons and info tiles: run any shell command or script, with a picker for every SF Symbol
  • Global keyboard shortcuts for every item, built-in or custom
  • Shortcuts app and Spotlight: every item is an App Intent you can automate
  • Share items as files or oneclick:// links, and grab ready-made ones from the gallery
  • Lightweight and native: about 4 MB, universal (Apple Silicon and Intel), no third-party dependencies
  • Free and open source under the MIT License

Requirements

  • macOS 26 Tahoe or later
  • Apple Silicon or Intel Mac

Installation

  1. Download OneClick-3.0.zip from the latest release.
  2. Unzip it and move OneClick.app to your Applications folder.
  3. Open it. The rocket icon appears in the menu bar.

Note

OneClick is a hobby project and isn't notarized by Apple, so the first launch is blocked. Open System Settings › Privacy & Security, scroll down and click Open Anyway next to OneClick. Or remove the quarantine flag from Terminal:

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

To start OneClick automatically, turn on Launch at login in Settings › General.

Features

Toggles

Toggle What it does
Hide Desktop Hides files and folders on the desktop (com.apple.finder CreateDesktop, restarts Finder)
Hidden Files Shows hidden files in Finder (com.apple.finder AppleShowAllFiles, restarts Finder)
Hide Dock Turns Dock auto-hide on or off
Hide Menu Bar Turns menu bar auto-hide on or off
Dark Mode Switches between Light and Dark appearance
Low Power Turns Low Power Mode on or off (pmset, asks for an administrator password)
Keep Awake Keeps the Mac and display awake, like caffeinate, until you turn it off or quit
Privacy Mode Hides desktop icons, Dock and menu bar at once, e.g. before sharing your screen

Actions

Action What it does
Empty Trash Empties the Trash through Finder. Click twice to confirm.
Free Memory Runs purge (asks for an administrator password)
Screenshot Captures the screen after 3 seconds into your screenshots folder

You can show, hide and reorder every item in Settings › Menu, and give any of them a keyboard shortcut.

Custom items

The OneClick panel with custom items, next to the Custom tab in Settings

In Settings › Custom you can add as many items as you like, each with your own commands and any SF Symbol, chosen from a searchable picker with every symbol in macOS.

  • Toggle: one command for on and one for off. Add an optional status check: the toggle shows as on when that command exits with code 0. Without one, OneClick remembers the last state.
  • Button: runs a single command and shows a checkmark when it succeeds.
  • Info: shows what a command prints (your IP, battery, current git branch…) and refreshes it while the panel is open. Click it to copy the text.

Each item also has these options:

Option What it does
Group Shows the item under its own heading in the panel
Run as administrator Runs the commands as root after Touch ID or your password
Ask for confirmation Needs a second click in the panel, like Empty Trash
Copy output to clipboard Buttons copy what the command prints
Stop after Stops a command that runs longer than the time you choose
Refresh every How often an info tile updates
Keyboard shortcut Runs the item from anywhere, even when the panel is closed

Commands run in your login shell (zsh -l), so tools installed with Homebrew are found. If a command fails, its error message appears in the panel.

Examples

OneClick starts with three examples you can edit or delete:

Item Type Command
Mute Toggle osascript -e 'set volume output muted true' / false
Status: osascript -e 'output muted of (get volume settings)' | grep -q true
Kill Port 3000 Button Stops whatever is listening on port 3000 (lsof -ti tcp:3000 -sTCP:LISTEN, then kill)
Copy UUID Button uuidgen | tr -d '\n' | pbcopy

More ideas:

Item Type Command
Docker Toggle On: open -a Docker · Off: osascript -e 'quit app "Docker"' · Status: docker info >/dev/null 2>&1
Wi-Fi Toggle On/Off: networksetup -setairportpower en0 on / off · Status: networksetup -getairportpower en0 | grep -q On
Flush DNS Button osascript -e 'do shell script "dscacheutil -flushcache; killall -HUP mDNSResponder" with administrator privileges'
Clean DerivedData Button rm -rf ~/Library/Developer/Xcode/DerivedData/*

Running scripts

Any script works, in any language you have installed:

python3 ~/scripts/backup.py
node ~/scripts/deploy.js
~/projects/tool/.venv/bin/python ~/projects/tool/run.py

Exit with a non-zero status and write to stderr to show an error in the panel (sys.exit(1) in Python).

Keyboard shortcuts

Click Record Shortcut next to any item in Settings › Menu, or in a custom item's editor, then press the keys. Shortcuts need ⌃, ⌥ or ⌘ (F-keys work on their own). Press Esc to cancel or Delete to remove a shortcut. A warning icon means macOS or another app already uses that combination.

Shortcuts work like a click in the panel: they flip toggles, run buttons and copy info tiles, without asking for confirmation.

Shortcuts app and Spotlight

OneClick adds three actions to the Shortcuts app, and they also appear in Spotlight:

Action What it does
Run OneClick Item Does what clicking the item does, and returns the command's output
Set OneClick Toggle Turns a toggle on or off, whatever its current state
Get OneClick Toggle State Returns whether a toggle is on, for use in conditions

Combine them with automations, for example turn on Keep Awake when a presentation app opens, or run a custom item at a given time.

Sharing items

Right-click a custom item in Settings › Custom to Copy Link or Export… it. The ⋯ menu imports and exports files with several items. OneClick always shows the commands for your review before adding anything, and shortcuts are never shared.

The gallery has ready-made packs for developers, networking and system info.

Permissions

The first time you use some features, macOS asks for permission:

Permission Needed for
Automation (System Events, Finder) Hide Dock, Hide Menu Bar, Dark Mode, Empty Trash
Screen & System Audio Recording Screenshot (without it, only the wallpaper is captured)

Settings › General has shortcuts to both panes in System Settings.

Upgrading from 2.x

OneClick 3.0 is a complete rewrite. Your choice of visible items and your custom toggle are imported automatically. The background image themes are gone: the panel now uses the system's Liquid Glass material and follows Light and Dark Mode.

Build from source

Requires Xcode 26 or later. There are no dependencies to install.

git clone https://github.com/mik3sw/OneClick.git
cd OneClick
open OneClick.xcodeproj

Then run the OneClick scheme. The code is organized in these folders:

Folder Contents
OneClick/Model Built-in features, custom items, preferences, SF Symbols catalog
OneClick/Services Running commands, reading system state, Keep Awake, keyboard shortcuts, sharing
OneClick/Intents App Intents for the Shortcuts app and Spotlight
OneClick/Views Menu bar panel and Settings window

Contributing

Bug reports and ideas are welcome in Issues. Pull requests are welcome too.

Reviews

Credits

  • App icon based on the Lucide rocket (ISC License)

License

OneClick is released under the MIT License.

Releases

Packages

Used by

Contributors

Languages