*nohtml*

local/bin/start

   1 #!/bin/bash
   2 
   3 title=${1^}
   4 start(){ xterm -e "$SHELL -ic 'echo -e \"\e]0;$title\a\"; $@'" & }
   5 
   6 case ${1,,} in
   7     apps) apps-menu drun;;
   8     windows) apps-menu window;;
   9 
  10     terminal) xterm &;;
  11     editor) gvim-menu;;
  12     files) start ranger;;
  13 
  14     bloge) blo-menu;;
  15     mail) start mutt;;
  16     news) start newsboat;;
  17     torrents) start transmission-remote-cli;;
  18     browser) chromium --new-window lexa.by &;;
  19 
  20     kino) mpv-menu;;
  21     music) start mocp;;
  22     mixer) pavucontrol &;;
  23 
  24     man) man-menu;;
  25     pass) pass-menu;;
  26     wiki) wiki-menu;;
  27     days) notify days;;
  28     weather) notify weather;;
  29     calendar) start calcurse;;
  30 
  31     symbols) gucharmap &;;
  32     dotfiles) dotfiles-menu;;
  33     nerdfonts) nerdfonts-menu;;
  34     icons) gtk3-icon-browser &;;
  35     theme) wall -c | menu $1 4 -l 6 | xargs -r wall -c;;
  36 
  37     redshift) pkill redshift || redshifter;;
  38     picker) gpick -spo | tr A-Z a-z | tr -d \\n | xsel -bi;;
  39 
  40     -l) grep -o '^\s\+\w\+)' $0 | tr -d ' )' | sort;;
  41     --list) $0 -l | while read i; do echo "$(icon $i) ${i^}"; done;;
  42     '') $0 --list | menu start 6 -l 5 | awk '{ print $NF }' | xargs -r $0;;
  43 
  44     -*) shift; title=${1^} start "$*";;
  45      *) start "$*";;
  46 esac