-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·43 lines (33 loc) · 1.19 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#! /bin/bash
set -e
NAME=lockscreen-extension
DOMAIN=pratap.fastmail.fm
UUID=$NAME@$DOMAIN
ZIP_NAME=$UUID.zip
# Findout gnome-shell version
SHELL_VERSION=$(gnome-shell --version | cut -d ' ' -f3 | cut -d '.' -f1)
if [[ $SHELL_VERSION -lt 42 ]]
then
echo "This script is not for the gnome-shell versions below 42, Exiting with no changes."
exit 1
fi
echo -e "\n\n\t~~~~~~~~~~~~~~~~ lockscreen-extension ~~~~~~~~~~~~~~~~\n"
echo -e "\trunning the script...\n"
echo -e "\t1. gnome-shell version $SHELL_VERSION detected"
if [[ $SHELL_VERSION -le 44 ]];then
cd src/v-42-43-44
else
cd src/v-45-46-47
fi
echo -e "\t2. Creating zip file..."
zip -qr $ZIP_NAME ./* && echo -e "\t3. zip file created"
echo -e "\t4. Installing the extension from the zip file...\n"
gnome-extensions install -f $ZIP_NAME
rm -rf $ZIP_NAME
echo -e "\t------------------------------------------
\t| lockscreen-extension is installed |
\t------------------------------------------
\tNow please enable the extension, once extension is enabled then
\tYou can set background with image(with blur) or color/gradient for each monitor upto 4 monitors independently"
echo -e "\n\t~~~~~~~~~~~~~~~~~~ Thank You ~~~~~~~~~~~~~~~~~~\n"
exit 0