forked from biji/simplenetspeed
-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Makefile
37 lines (27 loc) · 1.26 KB
/
Makefile
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
EXT_HOME=~/.local/share/gnome-shell/extensions/[email protected]
all: install
install: extension.js metadata.json prefs.js stylesheet.css schemas/gschemas.compiled
#Remove old files(if any)
rm -rf ${EXT_HOME}
#Create directory structure
mkdir -p ${EXT_HOME}
mkdir -p ${EXT_HOME}/schemas
#Copy compulsory files
cp extension.js metadata.json prefs.js stylesheet.css ${EXT_HOME}
cp schemas/gschemas.compiled ${EXT_HOME}/schemas
#Optional files
cp LICENSE ${EXT_HOME} 2>/dev/null || true
cp README.md ${EXT_HOME} 2>/dev/null || true
cp schemas/org.gnome.shell.extensions.netspeedsimplified.gschema.xml ${EXT_HOME}/schemas 2>/dev/null || true
#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…")'
#Enabling Gnome extension.
sleep 5
gnome-extensions enable [email protected]
remove:
rm -rf ${EXT_HOME}
#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…")'
remove-no-reboot:
rm -rf ${EXT_HOME}
reinstall: remove-no-reboot install