#!/bin/sh if [[ $# -eq 0 ]] ; then echo "i3-lock [ lock | start ]" exit fi case ${1} in lock) save-emacs-files xscreensaver-command --lock ;; start) xscreensaver ;; *) echo "i3-lock [ lock | start ]" esac