adi1090x / rofi

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

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

Open ghost opened 2 years ago

ghost commented 2 years 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 1 year 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!