worf/examples/dmenu.sh
2025-04-21 20:16:48 +02:00

12 lines
258 B
Bash
Executable file

#!/bin/bash
# A list of options, one per line
options="Option 1
Option 2
Option 3"
# Pipe options to wofi and capture the selection
selection=$(echo "$options" | cargo run -- --show dmenu)
# Do something with the selection
echo "You selected: $selection"