21 lines
366 B
Bash
Executable File
21 lines
366 B
Bash
Executable File
#!/bin/sh
|
|
DIR=$(dirname "$(readlink -f "$0")")
|
|
. "$DIR/../env.sh"
|
|
|
|
log 'Setting up slock'
|
|
|
|
case "$UNAMEA" in
|
|
*Ubuntu*)
|
|
sudo apt install -y \
|
|
xss-lock
|
|
;;
|
|
*artix*)
|
|
sudo pacman -S --noconfirm --needed \
|
|
xss-lock
|
|
;;
|
|
esac
|
|
|
|
makeinstallrepo https://gitee.com/klesh/slock.git slock
|
|
|
|
echo "export LOCKER=slock"
|