Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Target hidden menubar #130

Open
jannis-baum opened this issue Aug 8, 2023 · 7 comments
Open

Target hidden menubar #130

jannis-baum opened this issue Aug 8, 2023 · 7 comments

Comments

@jannis-baum
Copy link

Would be cool to have a native way of targeting right-side menubar items when the menubar is set to autohide! (For items on the left side it's not needed since we can access them by searching with cmd+shift+/

Hacky non-native solution as reference: #129

@godbout
Copy link
Owner

godbout commented Aug 8, 2023

will investigate. danke schön my dear Jannis!

@jannis-baum
Copy link
Author

bien sûr bg😊

@godbout
Copy link
Owner

godbout commented Sep 14, 2023

i can't find a way to do that properly natively. seems it's like the Dock, but even worse. you need to change a defaults, but then you need to kill each individual app for them to reflect the change. like even if you set the menu bar visible through defaults but you've only killed Finder, all the other apps will not show the menu bar lol. so it seems that indeed, if this is integrated natively in Wooshy, it has to be some sort of hacking, like moving the cursor up there before clicking. still pondering if i should add this hack in Wooshy (currently 80% yes).

@jannis-baum
Copy link
Author

Another option would be to add a keybinding for when Wooshy is active that moves the cursor up. I had my hacky version set up to always move the cursor to the menu bar before it opens Wooshy but found it annoying after a while. Now I have cmd+m in Wooshy set to move the cursor to the menu bar and then close and reopen Wooshy to get the targets. This way it still works but is less intrusive.

@godbout
Copy link
Owner

godbout commented Sep 14, 2023

i want to avoid as much as possible people having to do anything.

what i'm thinking is:

  1. check if the wanted UI Element is a menu bar Element
  2. if yes, check if the menu bar Setting is set to autohide
  3. if yes, move the cursor first, wait, then select
  4. if no, don't do anything. things as smooth as before

of course that would be if Wooshy catches the menu bar items even when the bar is hidden. haven't checked yet if it's the case. but in any case, i would like to find a way where the user doesn't have to think about it at all.

@jannis-baum
Copy link
Author

Nice that would be great! I thought it wasn't possible to get the menu bar elements when they aren't visible but maybe it is

@godbout
Copy link
Owner

godbout commented Sep 14, 2023

Nice that would be great! I thought it wasn't possible to get the menu bar elements when they aren't visible but maybe it is

no idea yet.

also probably checking whether the menu bar is set to autohide using the defaults is slow. so i'd have to maybe check the setting at start, and maybe in the background after each of Wooshy's click? or find another quick way to check, maybe with some screen dimensions that may change if they menu bar is not here (like edgeSafe dimensions blah blah blah). so yeah. still a lot to dig into. and not yet sure if the UX would be great at the end. but if it is, then we definitely add that. maybe something similar would even work for the Dock aww.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants