[download]

local/bin/system

   1 #!/bin/bash
   2 
   3 case $1 in
   4       reload) theme -r;;
   5      restart) ~/.xprofile;;
   6         lock) lock;;
   7        sleep) systemctl suspend;;
   8         quit) killall $DESKTOP_SESSION $(wmname) Xorg;;
   9       reboot) reboot;;
  10     poweroff) poweroff;;
  11     '') grep -o '^\s\+\w\+)' $0 | tr -d ' )';;
  12 esac