[download]

local/bin/start-menu

   1 #!/bin/bash
   2 
   3 cd ${0%/*}
   4 declare -A a
   5 
   6 a[picker]='picker'
   7 a[redshift]='notify redshift -p'
   8 
   9 for i in *-menu; do a[${i%-*}]=$i; done
  10 for i in battery days inbox moonday network ocr qrcode temp weather
  11 do a[$i]="notify $i"; done
  12 
  13 for i in ${!a[@]}; do icon $i ${i^}; done | sort -k 2 |
  14 menu -i os | awk '{ print tolower($NF) }' | while read i; do ${a[$i]}; done