kando-menu / kando

🥧 The Cross-Platform Pie Menu.
https://ko-fi.com/schneegans
Other
3.09k stars 89 forks source link

New menu condition: Application under cursor #625

Open Vermoot opened 2 months ago

Vermoot commented 2 months ago

Description

Hey there!

I'd love it if we could open a menu based on the application that's under the mouse cursor, not just the focused one.

I use a mouse button (mapped to a keyboard shortcut) to open Kando menus. I don't use focus-follows-mouse, but it'd be awesome if I could have my Firefox-specific menu pop up when hovering over a Firefox window, while my general menu would open over other apps.

I’ve managed to get something similar working in AwesomeWM by checking the window class under the cursor and running kando -m firefox, but it doesn't allow for the quick "hold-choose-release" way of using a menu.

Affected Desktop Environments

All

Additional Information

No response

Schneegans commented 2 months ago

Thanks for the suggestion! This is a good idea and it should be possible on most platforms, I guess. However, it will not be trivial, as it will require custom functionality for each and every backend.