



??
Hi everyone!
I've been working on recreating the Windows 11 Start Menu style in Rofi, and I'm really happy with how it turned out! I managed to get the layout, icons, search bar, and overall look working great.
However, I'm stuck on one last thing — I added a power button at the bottom right of the menu, but I can't figure out how to make it actually execute a command (like opening a power menu or running a shutdown script) when clicked.
From what I've researched, Rofi's button widget supports the action property, but it only accepts keybindings, not shell commands directly.
Does anyone experienced with Rofi know how to make a clickable button execute an external command or script? Any help would be greatly appreciated!
Here's a screenshot of my current design:
https://www.mediafire.com/file/eff4psykrlu09u6/rofi.tar.gz/file
inputbar {
enabled: true;
spacing: 10px;
padding: 10px;
border: 0px 0px 2px 0px;
border-radius: 5px;
border-color: ;
background-color: transparent;
text-color: u/foreground;
children: ["entry"];
}