ZZZ: lock the screen instead of asking the user to do so
This commit is contained in:
parent
dbd4ecbc07
commit
506952db72
11
bin/ZZZ.sh
11
bin/ZZZ.sh
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user