Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2019
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. !/bin/bash
  2.  
  3. declare -A array
  4. array[test]=potato
  5. array[sets]=carrot
  6.  
  7. options=$(printf "\n%s" "${!array[@]}")
  8. options=${options:1}
  9.  
  10. cmd=`echo "$options" | dmenu -i -fn 'fira-code-medium-20' -nb '#32302F' -nf '#458588' -sb '#928354' -sf '#32302F'`
  11. echo "${array[$cmd]}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement