*nohtml*

local/bin/notify

   1 #!/bin/bash
   2 
   3 ln(){ head | nl -w 2 -s '. '; }
   4 
   5 case ${1,,} in
   6         days) notify-send -i x-office-calendar    Дни      -- "$(days     | ln)";;
   7         mail) notify-send -i emblem-mail          Почта    -- "$(inbox    | ln)";;
   8         news) notify-send -i application-rss+xml  Новости  -- "$(news     | ln)";;
   9        music) notify-send -i audio-x-generic      Музыка   -- "$(music        )";;
  10      weather) notify-send -i ~/.cache/weather.svg Погода   -- "$(weather      )";;
  11     torrents) notify-send -i transmission         Загрузки -- "$(torrents | ln)";;
  12 
  13     '') grep -o '^\s\+\w*)' $0 | tr -d ' )' | sort;;
  14      *) notify-send -i "$1" "${1^}" -- "$($* | ln)";;
  15 esac