https://github.com/mik3sw/OneClick
macOS Utility menubar app 🚀
https://github.com/mik3sw/OneClick
caffeinate colors hidden-files mac macos powersaving preferences swift swiftui themes
Last synced: about 1 year ago
JSON representation
macOS Utility menubar app 🚀
- Host: GitHub
- URL: https://github.com/mik3sw/OneClick
- Owner: mik3sw
- License: mit
- Created: 2021-12-17T17:09:57.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-10-31T10:28:11.000Z (over 3 years ago)
- Last Synced: 2024-08-04T09:06:01.419Z (almost 2 years ago)
- Topics: caffeinate, colors, hidden-files, mac, macos, powersaving, preferences, swift, swiftui, themes
- Language: Swift
- Homepage: https://mik3sw.github.io/OneClick/
- Size: 77.8 MB
- Stars: 45
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- Mac-Menubar-Megalist - OneClick
README
# OneClick



OneClick can give you quick access to some macOS functions from MenuBar!
* **macOS 12.x** (Monterey)
* **Intel app** (only 1.4 and before)
* **Apple Silicon app** (all versions)
## 💾 Downloads
[]()
**Support me with a star!** ⭐️
**Not fully compatible with macOS Ventura 13.0**
* [Releases](https://github.com/mik3sw/OneClick/releases)
* HomeBrew soon ...
> OneClick 2.x is currently in beta i need to fix some errors and bugs
> This is a hobbyist app
Show functions
### Hide/Show desktop
Commands:
* ```defaults write com.apple.finder CreateDesktop false ; killall Finder```
* ```defaults write com.apple.finder CreateDesktop true ; killall Finder```
### Hide/Show hidden files/folders
Commands:
* ```defaults write com.apple.finder AppleShowAllFiles -boolean true ; killall Finder```
* ```defaults write com.apple.finder AppleShowAllFiles -boolean false ; killall Finder```
### Hide/Show dock
Commands:
* ```osascript -e 'tell application \"System Events\" to set the autohide of the dock preferences to true'```
* ```osascript -e 'tell application \"System Events\" to set the autohide of the dock preferences to false'```
### Enable/disable power saving
Commands:
* ```osascript -e 'do shell script \"pmset -a lowpowermode 1\" with administrator privileges'```
* ```osascript -e 'do shell script \"pmset -a lowpowermode 0\" with administrator privileges'```
* these commands need root access (the app will ask for administrator password or touchID)
### Enable/disable dark mode
Commands:
* ```osascript -e 'tell application \"System Events\" to tell appearance preferences to set dark mode to true'```
* ```osascript -e 'tell application \"System Events\" to tell appearance preferences to set dark mode to false'```
### Caffeinate
Commands:
* ```caffeinate```
* ```killall caffeinate```
### Empty trash
Command:
* ```osascript -e 'tell application \"Finder\" to empty trash'```
### Clear memory
Command:
* ```osascript -e 'do shell script \"purge\" with administrator privileges'```
### Take screenshot
Command:
* ```screencapture -T 3 -t png -P Desktop/screenshot.png```
## ⚙️ Settings
From settings you can select Themes (dark and light), "launch at login" function and edit the main view elements.
| General | Edit | Custom Toggles |
|---|---|---|
|  |  |  |
## Custom Toggles (Beta)
> This is a beta feature, you can only add one custom toggle

## 🎨 Themes
Here a preview of light and dark themes
| | | | | | |
|---|---|---|---|---|---|
|  |  |  |  |  |  |
|  |  |  |  |  |  |
## ToDo
- [ ] Select theme image from storage
- [x] Persistent data (at the moment settings will reset if you close the app)
- [ ] New Functions
- [x] Custom toggles
## Reviews
* [MacUpdate](https://www.macupdate.com/app/mac/63828/oneclick)
* [Softpedia](https://mac.softpedia.com/get/System-Utilities/mik3sw-OneClick.shtml)
## Credits
* [Launch at login](https://github.com/sindresorhus/LaunchAtLogin)