forked from biji/simplenetspeed
-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
quick-install.sh
33 lines (25 loc) · 1.25 KB
/
quick-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
#!/bin/bash
set -e
set -x
EXT_HOME=~/.local/share/gnome-shell/extensions/[email protected]
PROJECT_HOME=https://raw.githubusercontent.com/prateekmedia/netspeedsimplified/main
#Remove Old files
rm -rf ${EXT_HOME}
#Create a directory structure
mkdir -p ${EXT_HOME}
mkdir -p ${EXT_HOME}/schemas
#Copy required files
curl ${PROJECT_HOME}/convenience.js -o ${EXT_HOME}/convenience.js
curl ${PROJECT_HOME}/extension.js -o ${EXT_HOME}/extension.js
curl ${PROJECT_HOME}/metadata.json -o ${EXT_HOME}/metadata.json
curl ${PROJECT_HOME}/prefs.js -o ${EXT_HOME}/prefs.js
curl ${PROJECT_HOME}/stylesheet.css -o ${EXT_HOME}/stylesheet.css
curl ${PROJECT_HOME}/schemas/gschemas.compiled -o ${EXT_HOME}/schemas/gschemas.compiled
curl ${PROJECT_HOME}/schemas/org.gnome.shell.extensions.netspeedsimplified.gschema.xml -o ${EXT_HOME}/schemas/org.gnome.shell.extensions.netspeedsimplified.gschema.xml
#Optional files
curl ${PROJECT_HOME}/LICENSE -o ${EXT_HOME}/LICENSE
#Reloading shell; Sending SIGHUP signal to gnome-shell (equivalent to alt + f2 ; r ; enter)
busctl --user call org.gnome.Shell /org/gnome/Shell org.gnome.Shell Eval s 'Meta.restart("Restarting…")'
sleep 5
#Enabling Gnome extension.
gnome-extensions enable [email protected]