Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- !/bin/bash
- declare -A array
- array[test]=potato
- array[sets]=carrot
- options=$(printf "\n%s" "${!array[@]}")
- options=${options:1}
- cmd=`echo "$options" | dmenu -i -fn 'fira-code-medium-20' -nb '#32302F' -nf '#458588' -sb '#928354' -sf '#32302F'`
- echo "${array[$cmd]}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement