Replies: 3 comments 3 replies
-
your POC is awfully complex i believe the following code works. (it's from code that i used a while ago, haven't tested this recently) hs.eventtap.new({ hs.eventtap.event.types.mouseMoved }, function(l)
return (l:location().y < 2)
end):start() |
Beta Was this translation helpful? Give feedback.
-
I don't think I want to start using a global mouse event tap just to stop the default bar from showing, since this can have drastic performance implications as sketchybar would need to handle every mouse move event of the system. I have profiled this effect some time ago and it is a non-acceptable degradation of performance. Creating a little helper program for this seems to be the best approach. |
Beta Was this translation helpful? Give feedback.
-
From yabai v6.0.12+ there is an option to completely disable the built-in menu bar: yabai -m config menubar_opacity 0.0 |
Beta Was this translation helpful? Give feedback.
-
There is one way to keep the builtin menu bar 'permanently' hidden without actually modifying the system. All it requires is accessibility permissions:
CGEventTap*
API to intercept mouse-moved events.Proof of concept for the event tap part, using Hammerspoon:
Would something like this be worth implementing into SketchyBar itself? That would remove the need for a separate app, and make sure that if SketchyBar wasn't running for some reason, the builtin bar would become available again. On the other hand, it could cause input lag if SketchyBar was busy doing something other than handling those events - at least until the system got tired of waiting and auto-disabled the event tap.
Beta Was this translation helpful? Give feedback.
All reactions