-
-
Notifications
You must be signed in to change notification settings - Fork 81
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
mouse.exited and mouse.exited.global not properly triggered? #564
Comments
it might be more of: how do I do this? |
these are events that trigger the instant they happen, so it you won't get if the mouse is on the item afterwards. # on the entered event
rm /tmp/sk_exited_"$NAME"
(
sleep 2
[[ -f /tmp/sk_exited_"$NAME" ]] || sketchybar --set $NAME popup.drawing=on
) &
# on the exited event
touch /tmp/sk_exited_"$NAME" With this, exit events set a flag, so you can read that 2 seconds after the enter event to know if your cursor is still didn't exit. Maybe there's a more straightforward way of doing it, but idk |
Having issues keeping my popup drawing set as off when mouse has exited the
apple
item.in my apple.sh:
I wanted to add a nested if statement which double checks after 2 seconds if I am still hovered on the item, before setting the popup drawing=on.
However, the code above doesn't do this, because if I add the nested for loop it seems to still think it's hovered. I'm not exactly sure how to approach this.
The text was updated successfully, but these errors were encountered: