Is it possible to use hyprland defined variables inside 'hyprctl dispatch exec' commands?

For example ‘hyprctl dispatch exec $menu’

Is there some escape sequence?

Only reason is just to make other things (like waybar button for example) agnostic of what default programs have been set within hyprland.conf, so less editing needed. Not a major thing.

I can’t find any info on this so probably not so just created an account here to ask. Didn’t even realize there was a hyprland forum. Very nice.

Can you give a little more context for your use case, what are you trying to accomplish exactly?

It’s nothing very vital I was just mucking around with my waybar setup.

Basically just putting a button on the left edge (ie. start button whatever) that runs whatever application hyprland has set for a menu (wofi, etc). Obviously having waybar execute wofi is simple enough, I was just wondering if there was a way to use hyprctl dispatch to access variables set within hyprland.conf.

Just use grep to get the $menu, probably the simplest solution if you don’t wanna set it into waybar directly

Ah of course that’s quite clever thank you.

ya this almost sounds more like a use case for nix lol