i3-lock 275 B

123456789101112131415161718
  1. #!/bin/sh
  2. if [[ $# -eq 0 ]] ; then
  3. echo "i3-lock [ lock | start ]"
  4. exit
  5. fi
  6. case ${1} in
  7. lock)
  8. save-emacs-files
  9. xscreensaver-command --lock
  10. ;;
  11. start)
  12. xscreensaver
  13. ;;
  14. *)
  15. echo "i3-lock [ lock | start ]"
  16. esac