AndreasBackx / waycorner

Hot corners for Wayland. Create anchors in the corners of your monitors and execute a command of your choice.
MIT License
86 stars 6 forks source link

Add the possibility to order corners by giving each of them a priority #9

Closed jhpaques closed 1 year ago

jhpaques commented 2 years ago

A priority value can be set for each hot corner. Corners with higher priority are draw last (on top).

This solves #8 for me: I define two corners, one with the enter command, the other with the exit command, and give them two different timeout times. For this to work I need the corner with the enter command to be smaller than the other, therefore it has to be consistently on top of the other.

AndreasBackx commented 1 year ago

Neat way of using the tool! I think this should be possible, but I don't think manually setting a priority is the ideal way. What about sorting based on the square size of the area and drawing the smallest ones last? This seems like it would solve your issue?

Let me know what you think, I just want to make sure it would still work then. Feel free to update your PR as well and I can merge it hopefully quickly this time, I'm trying to keep up with the GitHub stuff from now one, hoping I will get notified now.

AndreasBackx commented 1 year ago

I'll close this for now. Feel free to reopen it if you plan to continue working on it.