worf/examples/dmenu.sh
2025-05-01 01:04:32 +02:00

13 lines
308 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)
#selection=$(echo "$options" | wofi --show dmenu)
# Do something with the selection
echo "You selected: $selection"