1234567891011121314151617181920212223 |
- #!/bin/sh
- if [[ $# -eq 0 ]] ; then
- echo "i3-lock [ lock | start ]"
- exit
- fi
- case ${1} in
- locker-command)
- i3lock -c 536a77 -d -e -f
- ;;
- lock)
- save-emacs-files
- # xscreensaver-command --lock
- xautolock -locknow
- ;;
- start)
- # xscreensaver
- xautolock -time 10 -locker "i3-lock locker-command" -detectsleep -notify 30
- ;;
- *)
- echo "i3-lock [ lock | start ]"
- esac
|