adi1090x / rofi

A huge collection of Rofi based custom Applets, Launchers & Powermenus.
GNU General Public License v3.0
6.37k stars 298 forks source link

[Feature Request] Clicking on powermenu/applets doesn't work #121

Open ghost opened 1 year ago

ghost commented 1 year ago

It will be a nice idea if clicking on a powermenu button works rather than manually pressing enter through my keyboard. You can use xdotool to simulate mouse input.

rixx commented 9 months ago

rofi supports this on its own, no need for xdotool: You have to either add these flags to the rofi invocation in your powermenu:

-me-select-entry '' -me-accept-entry 'Mouse1' -hover-select

Or add the following to the .rasi file used by your powermenu, in the general configuration {} block:

    hover-select: true;
    me-select-entry: "";
    me-accept-entry: "MousePrimary";

Would probably be neat to add this to all the powermenu configs or scripts!