Home

Awesome

<p align="left"> <img alt="AppIcon" src="https://github.com/jacklandrin/OnlySwitch/blob/main/OnlySwitch/Assets.xcassets/AppIcon.appiconset/icon_256x256@2x.png?raw=true" width="128px" align="center" /> </p>

OnlySwitch

Menubar is smaller, you only need an All-in-One switch.

Install by Homebrew

brew install only-switch

Manually Download

Download the app

Communities

Telegram group: https://t.me/OnlySwitchforMac

Discord: https://discord.gg/UzSNpYdPZj

What's the OnlySwitch?

OnlySwitch provides a series of toggle switches to simplify your routine work, such as Hidden desktop icons, dark mode, and hide notch of the new Macbook Pro. The switches show on your status bar, you can control them effortlessly. Switch and Shortcuts items can be customized (remove/add or sort) to show on the list. These functionalities even can be put on your desktop as Widgets.

Since Version 1.7, Shortcuts can be imported into OnlySwitch.

Since Version 2.0, supports keyboard shortcuts. You can control your all switches and Shortcuts with the keyboard.

<p align="center"> <img alt="Only Switch" src="https://github.com/user-attachments/assets/40d94175-6487-4c59-b09e-2261ac5b8453" width="80%" align="center" /> </p>

Since Version 2.3.6, the Switches Availability (including Player and Hide Menu Bar Icons) is moved to System's menu bar.

Since Version 2.5.0, OnlySwitch has started to support Apple Widgets (Sonoma and above).

Since Version 2.5.4, OnlySwitch has Only Control appearance.

Shortcuts Gallery

Everyone can contribute macOS Shortcuts for OnlySwitch now. Please read How to contribute to Shortcuts Gallery. The shared Shortcuts will be displayed here:

<p align="center"> <img alt="Sits in the status bar" src="https://github.com/jacklandrin/OnlySwitch/assets/3782279/a9d90eed-c540-4183-9332-396dce0f72d4" width="70%" align="center" /> </p>

Switch list

Native Switches:

SwitchstatusSwitchstatus
Hide desktopfinishedHide notchexist some issues
Dark modefinishedLow power moderequire password
Screen SaverfinishedShow Finder Path Barfinished
Night ShiftfinishedMute micfinished
Autohide DockfinishedSmall launchpad iconfinished
AirpodsfinishedPomodoro timerfinished
BluetoothfinishedShow extension namefinished
Xcode cachefinishedShow user library folderfinished
Autohide Menu BarfinishedMutefinished
Show hidden filesfinishedEmpty pasteboardfinished
Radio StationfinishedEmpty trashfinished
Keep awakefinishedShow Recent Apps on Dockfinished
SpotifyfinishedApple Musicfinished
Screen Test & CleanfinishedHide Menu Bar Iconspartly finished
FKeyfinishedBack Noisesfinished
Dim ScreenfinishedEject Discsfinished
Hide Windowspartly finishedTrue Tonefinished
Top Stickerpartly finishedKey Lightfinished

Since Version 1.3, switches can be added to or removed from the list.

Shortcuts Gallery:

ShortcutsRemarkShortcutsRemark
Toggle Scroll DirectionMonterayInvert Scroll Direction(Ventura)Ventura
DarkMode SwitchNetwork Details
Split-Screen AppsPasswords
Google TranslateIP Address Information
Autohide menu bar in full screenMonterayFlush DNS Cache
Do Not DisturbMonteray or higherUpcoming Events
S-GPTworks with S-GPT Encoder, needs OpenAI API keyS-GPT Encoder

Evolution Gallery:

EvolutionRemarkEvolutionRemark
Stage ManagerUpdate Softwareinstalled via App Store
Hide desktop WidgetSonomaHide Desktop IconsSonoma
ClamshellWifi Switch

Shortcuts Actions

Actionsstatus
Get wallpaper imageexist some issues
Get wallpaper urlfinished
Is dark modefinished
Set dark modefinished

Supported Languages 🇺🇳

English, Simplified Chinese, German, Croatian, Turkish, Polish, Filipino, Dutch, Italian, Russian, Spanish, Japanese, Somali, Korean, French, Ukrainian, Slovak, Portuguese (BR)

Welcome to pull requests for these

If you have other good ideas 💡, feel free to send an E-mail to me.

Donate

If you like it, help support this app by giving me a cup of tea for me to keep coding.

<p align="center"> <img alt="Sits in the status bar" src="https://github.com/user-attachments/assets/76347782-e84f-469d-b9bf-2dae89d61979" width="20%" align="medium" title="Made by QRCobot"/> </p>

Hiding new Macbook Notch

The Hide notch switch only shows on the built-in display of M1 Pro/Max Macbook Pro. The switch just controls the current desktop, not all work desktops. Now, the Hide notch switch supports dynamic wallpaper, just the processing takes a much longer time.

<p align="center"> <img alt="Sits in the status bar" src="https://github.com/jacklandrin/OnlySwitch/assets/3782279/efddd8d3-edfe-4497-bea0-5051d27625ca" width="60%" align="center" /> </p>

Only Widget

Only Switch supports Apple Widgets since version 2.5.0. The Widgets can be edited to any built-in switches and buttons. Clicking them will trigger the reflection of relevant switches and buttons. You can put Only Widgets anywhere, desktop or notification center.

Since version 2.5.2, Only Widget supports Evolution.

NOTE: After updating version 2.5.0, you might need to reset your language. If your widgets didn't follow your language settings, please kill Only Widget process, it will update.

<img width="370" alt="Only Widget" src="https://github.com/jacklandrin/OnlySwitch/assets/3782279/0c1be202-9e5f-41dd-b62d-52d5a7147139">

Evolution🔥

Evolution has come following version 2.4, you can freely DIY the switches and buttons that you want. Currently, evolution supports Shell and Apple Script. They also can be invoked by hotkeys. Next, evolution will be able to be distributed by users as a shortcut utility platform.

Evolution settings page is implemented with TCA. PS: Evolution feature needs macOS 13.0 and above.

Everyone can contribute Evolution for OnlySwitch since version 2.4.3. Please read How to contribute to Evolution Gallery. The shared Evolutions will be displayed here:

<p align="center"> <img alt="Sits in the status bar" src="https://github.com/jacklandrin/OnlySwitch/assets/3782279/f3299ae0-0222-49a3-864a-80c6601bac6a" width="70%" align="center" /> </p>

How to create an Evolution?

So far, Evolution offers two types, with Switch and Button.

  1. Button is very simple, when Run button is pressed, the script you added will be executed.
  2. Regarding Switch, there are four fields you can edit.

The debug button can verify if your scripts are valid. Before you save evolution, all scripts must pass the test.

AirPods Switch

I use classOfDevice(2360344) to check if a Bluetooth device is Airpods Pro, but I'm not sure whether other AirPods modules are also 2360344, since I only have two AirPods Pros. If you are using AirPods 1~3, please tell me what the classOfDevice is. Or I can detect the count of battery value to check if AirPods (when the count is 3, it's AirPods), like AirPods Battery Monitor For MAC OS.

Radio Player

Radio Player supports m3u, and aac stream, but without sound wave effect. Please send me the crash log and stream URL if your Radio Player crashes. You can close the sound wave effect on the Radio setting, and that player is AVPlayer, more stable. In version 2.3.5, the radio play can be set to enable/disabled. If the function is disabled, the switch will be invisible in the list, and the radio player will be unregistered from Now Playing(But I don't know why there will be a little delay. It should be a problem by macOS).

Since Version 2.3.11, the radio list can be exported and imported.

Low Power Mode

Low Power Mode uses Terminal commands that require root access, so the app will ask you to enter the password on every toggle.

Screen Test & Clean

In Version 2.3, Only Switch brings a new feature, Screen Test. It provides a pure color view in full-screen mode, you can check dead pixels via it. Press the left and right arrow keys, the color will change from black, white, red, green, and blue. This functionality also can be used for screen cleaning, as you can see the stains on the screen.

Hide Menu Bar Icons

This feature is new in version 2.3.2. To be honest, Hidden and Dozer are both good apps for this function. Many users install OnlySwitch and them simultaneously, but this also squeezes the menu bar, which is already lacking in space. Therefore, the feature integrates into OnlySwitch. When the switch is on, items on the left of the split(arrow-pointing) icon are hidden. Hold ⌘ (command) and drag the icon to configure the hidden section. If you want to use it no longer, you can disable it in preferences, the split icon will disappear. You also can set the interval of autohide for it here. If your date on the menu bar is truncated when it's on, you can set this: System Preferences -> Dock & Menu Bar -> Clock -> Show date -> always.

Since version 2.3.10, this switch can be controlled via right-click icons.

They talk about it

itopnews.deIfun.deappgefahren.deCASCHYS BLOG
softpediamacupdatev1txOSCHINA
MackenAAPL Chappsofterlifehacker.ru
appletechnikblogAll-in-One personMac GadgetMaxiApple
insmactchgdnsinsmacmacbff
korbenmacgkorben.infoAlternativeTo
macsoft.jpmacgenerationhdwh.deMacKed
Mac TorrentsPCtipplifehackerPHAPLUAT
TechgedönsMacVince

Reference

Contributors

Translation:

LanguageContributorLanguageContributor
German@C0d3Br3akerItalian@bellaposa
Croatian@milotypeRussian@kirillyakopov
Turkish@berkbatuhansSpanish@kant
Polish@kpacholakJapanese@ShogoKoyama
DutchAlexSomali@abdorizak
FilipinoRoselKorean@iosdevted
French@BtKent and Ange LefrèreUkrainian@andryua
Slovak@Svec-TomasPortuguese (BR)@EvertonCa

@wrngwrld for the volume slider of the radio player

@kant for syntax issue

License

MIT

Star History

Star History Chart