*nohtml*

local/bin/system

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