2022-05-03 15:20:26 +00:00
|
|
|
#!/bin/sh
|
|
|
|
DIR=$(dirname "$(readlink -f "$0")")
|
|
|
|
. "$DIR/../env.sh"
|
|
|
|
|
|
|
|
log 'Setting up slock'
|
|
|
|
|
2022-05-17 07:47:19 +00:00
|
|
|
case "$UNAMEA" in
|
|
|
|
*Ubuntu*)
|
|
|
|
sudo apt install -y \
|
|
|
|
xss-lock
|
|
|
|
;;
|
|
|
|
*artix*)
|
|
|
|
sudo pacman -S --noconfirm --needed \
|
|
|
|
xss-lock
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2022-05-03 15:20:26 +00:00
|
|
|
makeinstallrepo https://gitee.com/klesh/slock.git slock
|
2022-05-19 08:19:17 +00:00
|
|
|
|
|
|
|
echo "export LOCKER=slock"
|