
Code: Select all
exec $(applications.txt > bemenu [my arguments here])Code: Select all
librewolf --arg1 --large
thunderbird --arg1
…

In 'dmenu mode', yes. However, other 'modes' are available, including 'drun mode', which sounds like it's applicable to your use-case; more on that below.leyvi wrote:All these programs seem to read a list of items from standard input, and echo the selected option. Are they meant to be used in scripts? As in:Where applications.txt contains:Code: Select all
exec $(applications.txt > bemenu [my arguments here])Is that how I'm meant to use them?Code: Select all
librewolf --arg1 --large thunderbird --arg1 …
In part, yes. The name 'Wofi' is riffing on Rofi, mentioned at the bottom of the 'Wofi' page on the wiki. Quoting the wofi(1) man page:leyvi wrote:By the way, Wofi looks like another dmenu clone.
Wofi has non-dmenu modes, as described in the wofi(7) man page:wofi is a rofi inspired menu program for wlroots compositors such as sway. It is intended to be highly customizable and flexible with the help of CSS styling and a dmenu mode that allows for endless scriptability. Wofi can be run cacheless in dmenu mode automatically by invoking it as dmenu with symlink.
In my own setup, i have a wofi_run.sh script, and have bound "<super> m" in my compositor (Wayfire) to call 'wofi_run.sh run'.Currently wofi has 3 built in modes
1. run - searches $PATH for executables and allows them to be run by selecting them.
2. drun - searches $XDG_DATA_HOME/applications and $XDG_DATA_DIRS/applications for desktop files and allows them to be run by selecting them.
3. dmenu - reads from stdin and displays options which when selected will be output to stdout.