Selected

Previous: Create Menu

fzf

執行下面指令

selected=$(echo -e "aaa\nbbb\nccc" | fzf)

echo "Selected: ${selected}"

dmenu

執行下面指令

selected=$(echo -e "aaa\nbbb\nccc" | dmenu -b -l 10)

echo "Selected: ${selected}"

rofi

執行下面指令

selected=$(echo -e "aaa\nbbb\nccc" | rofi -dmenu)

echo "Selected: ${selected}"

jgmenu

執行下面指令

selected=$(echo -e "aaa,val_aaa\nbbb,val_bbb\nccc,val_ccc" | jgmenu --simple --center --no-spawn)

echo "Selected: ${selected}"

Next: Modularize