Zren / plasma-applet-presentwindows

https://store.kde.org/p/1181039/
16 stars 6 forks source link

Support more mouse events #10

Open koma111 opened 4 years ago

koma111 commented 4 years ago

Hello! I have a feature request for the Present Windows plasmoid: the ability to add other actions to the plasmoid besides the one selected for left-clicking the icon. Different mouse actions like middle click and left/middle clicks with modifier keys (Shift, Control, Alt, Super) could be used this way. The way I could imagine the settings being implemented is as dropdown entries: Left click: [ Present Windows (all desktops) v ] Middle click: [ Show Desktop Grid v ] Shift + Left click: [ Present Windows (current desktop) v ] Shift + Middle click: [ Toggle Parachute v ] Alt + Left click: [ Disabled v ] Alt + Middle click: [ Disabled v ] Something like that. There could be toggles at the top to enable middle click (hides all middle click options if turned off) and enable modifier keys (hides all modifier options if disabled). The rest would be the same. It might make sense to move the options for different mouse events (the list with the dropdowns) to a separate page titled 'actions', together with the 'enable middle click' and 'enable modifiers options' toggles, leaving only the icon, Unity 7 settings and effect toggles on the currently present page, and moving that to second position with 'more' or 'miscellaneous' as page title. I think this is worth considering as a future improvement for the applet.

madprops commented 3 years ago

Totally agree with this. What each action does should be hopefully configurable too. I would use middle click for Desktop Grid. And normal click for Present Windows. But I could see myself using shift+click for a different kind of Present Windows too.

madprops commented 3 years ago

Would also like to add the idea of mouse wheel events. It would be nice to have wheel change between workspaces. Makes sense when the widget is on the corner, since it's easy to put the cursor over it.