ZZZ: lock the screen instead of asking the user to do so

This commit is contained in:
Lucas 2021-11-19 22:23:57 +00:00
parent dbd4ecbc07
commit 506952db72

View File

@ -1,6 +1,6 @@
#!/bin/sh
# ZZZ
# Written in 2019-2020 by Lucas
# Written in 2019-2021 by Lucas
# CC0 1.0 Universal/Public domain - No rights reserved
#
# To the extent possible under law, the author(s) have dedicated all
@ -11,13 +11,6 @@
# <http://creativecommons.org/publicdomain/zero/1.0/>.
doas true || exit $?
printf "Hibernating in"
for i in 3 2 1; do
printf " %d..." $i
sleep 1
done
printf " now!\n"
xlock &
doas /usr/sbin/ZZZ "$@"
doas -L