*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;;
   8           menu) start-menu;;
   9        windows) windows-menu;;
  10 
  11       terminal) xterm &;;
  12         editor) gvim-menu;;
  13          files) start ranger;;
  14 
  15          bloge) blo-menu;;
  16           mail) start mutt;;
  17           news) start newsboat;;
  18       torrents) start transmission-remote-cli;;
  19        browser) chromium --new-window lexa.by &;;
  20 
  21           kino) mpv-menu;;
  22          music) start mocp;;
  23          audio) audio-menu;;
  24          mixer) pavucontrol &;;
  25 
  26            man) man-menu;;
  27           pass) pass-menu;;
  28           wiki) wiki-menu;;
  29           days) notify days;;
  30        weather) notify weather;;
  31       calendar) start calcurse;;
  32 
  33          theme) wall-menu;;
  34          emoji) emoji-menu;;
  35        symbols) gucharmap &;;
  36       dotfiles) dotfiles-menu;;
  37      wallpaper) wallpaper-menu;;
  38      nerdfonts) nerdfonts-menu;;
  39          icons) gtk3-icon-browser &;;
  40 
  41     screenshot) screenshot;;
  42         system) system-menu;;
  43        battery) notify battery;;
  44       redshift) kill $(pidof redshift) || redshift &;;
  45         picker) gpick -spo | tr A-Z a-z | tr -d \\n | xsel -b;;
  46 
  47       editor-alt) gvim &;;
  48        files-alt) nemo &;;
  49     terminal-alt) start tm;;
  50         apps-alt) xfce4-appfinder &;;
  51     torrents-alt) transmission-gtk &;;
  52        drop-down) xfce4-terminal --drop-down --role pop-up --title Dropdown &;;
  53 
  54     '') grep -o '^\s\+\w\+)' $0 | tr -d ' )' | sort;;
  55     -*) shift; title=${1^} start "$*";;
  56      *) start "$*";;
  57 esac