OnlySwitch icon indicating copy to clipboard operation
OnlySwitch copied to clipboard

unexpected behaviour for toggle "auto hide menu bar"

Open alvis233 opened this issue 2 years ago • 6 comments

Currently, "auto hide menu bar" only works for Window Mode. However, since MacOS Monterey, users are allowed to keep the menu bar visible when in Full-Screen Mode. It is quite useful for most situations to have a glance at the time when in Full-Screen Mode. But some apps' windows will just conflict with the menu bar, like Parallels Desktop. But "auto hide menu bar" in OnlySwitch does not work as expected when in Full-Screen Mode.

To Reproduce Steps to reproduce the behavior:

  1. Make your app enter Full-Screen Mode
  2. Click on 'auto hide menu bar' to enable hiding menu bar

Expected behavior the menu bar should be hidden

  • OS: MacOS
  • Version: Monterey
  • CPU: m1

alvis233 avatar Jun 10 '22 09:06 alvis233

Thank you for your feedback. Since autohide menu bar in full screen and on desktop are two different toggles in System Preferences, I think a new switch for this feature is proper. Unfortunately, I haven't find an apple script way as auto hide menu bar on desktop to implement it. I know I can use UI script, but preferences UI maybe change when macOS upgrading, it isn't an elegant approach for this. If you know some better ways, please tell me.

jacklandrin avatar Jun 10 '22 14:06 jacklandrin

Thank you for your feedback. Since autohide menu bar in full screen and on desktop are two different toggles in System Preferences, I think a new switch for this feature is proper. Unfortunately, I haven't find an apple script way as auto hide menu bar on desktop to implement it. I know I can use UI script, but preferences UI maybe change when macOS upgrading, it isn't an elegant approach for this. If you know some better ways, please tell me.

So sad to hear that. I was a OneSwitch user before. "Auto hide menu bar" is the most important reason for me to switch to OnlySwitch. @jacklandrin

alvis233 avatar Jun 10 '22 14:06 alvis233

@alvis233 Perhaps I can build a special version via UI scripting for you. If you feel it good, I'll release it but mark the feature as beta. When I get the better way, or in the Ventura provides an original script for it, I'll replace the method. BTW, I create a telegram group, feel free to join it: https://t.me/OnlySwitchforMac

jacklandrin avatar Jun 10 '22 14:06 jacklandrin

@jacklandrin Huge thx!

alvis233 avatar Jun 10 '22 15:06 alvis233

@alvis233 How about use shortcuts action? Like this it can be easily updated following macOS version upgrading. You can try this shortcut action I create: https://www.icloud.com/shortcuts/29341dfe669e4c898fd78faa6549dcbb If you feel it good, I'll contribute it on OnlySwitch shortcuts gallery.

jacklandrin avatar Jun 10 '22 20:06 jacklandrin

@jacklandrin Hi, Jack. I've tried the shortcuts action. It works well. But be careful about the contents to match the "title"(descriptions along the checkbox). Unlike application name or process name, they must conform with the system language so that the script could run correctly.

alvis233 avatar Jun 11 '22 04:06 alvis233