[download]

local/bin/start-menu

   1 #!/bin/bash
   2 
   3 cd ${0%/*}
   4 source icon
   5 
   6 declare -A map=(
   7     [battery]='notify battery'
   8     [daylight]='notify daylight'
   9     [days]='notify days'
  10     [files]='term ranger ~'
  11     [inbox]='notify inbox'
  12     [moonday]='notify moonday'
  13     [network]='notify network'
  14     [ocr]='notify ocr'
  15     [picker]='picker'
  16     [qrcode]='notify qrcode'
  17     [redshift]='notify redshift -p'
  18     [temp]='notify temp'
  19     [terminal]='term'
  20     [torrents]='notify torrents'
  21     [weather]='notify weather'
  22 )
  23 for i in *-menu; do map[${i%-*}]=$i; done
  24 
  25 for i in ${!map[@]}; do icon $i ${i^}; done | sort -k 2 |
  26 menu -i os | while read _ i; do ${map[${i,}]}; done