-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgnome-extensions-install
More file actions
27 lines (24 loc) · 1.31 KB
/
Copy pathgnome-extensions-install
File metadata and controls
27 lines (24 loc) · 1.31 KB
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
#!/bin/bash
# command to get currently-install gnome extensions: gnome-extensions list
# More info: https://docs.redhat.com/de/documentation/red_hat_enterprise_linux/9/html/customizing_the_gnome_desktop_environment/managing-gnome-shell-extensions-via-command-line_customizing-the-gnome-desktop-environment
# More into: https://unix.stackexchange.com/questions/617288/command-line-tool-to-install-gnome-shell-extensions
array=(weatheroclock@CleoMenezesJr.github.io
just-perfection-desktop@just-perfection
quarterwindows@troyready.com
lilypad@shendrew.github.io
system-monitor-next@paradoxxx.zero.gmail.com
Vitals@CoreCoding.com
thinkpadthermal@moonlight.drive.vk.gmail.com
appindicatorsupport@rgcjonas.gmail.com
)
for i in "${array[@]}"
do
VERSION_TAG=$(curl -Lfs "https://extensions.gnome.org/extension-query/?search=${i}" | jq '.extensions[0] | .shell_version_map | map(.pk) | max')
wget -O ${i}.zip "https://extensions.gnome.org/download-extension/${i}.shell-extension.zip?version_tag=$VERSION_TAG"
gnome-extensions install --force ${EXTENSION_ID}.zip
if ! gnome-extensions list | grep --quiet ${i}; then
busctl --user call org.gnome.Shell.Extensions /org/gnome/Shell/Extensions org.gnome.Shell.Extensions InstallRemoteExtension s ${i}
fi
gnome-extensions enable ${i}
rm ${EXTENSION_ID}.zip
done