Install the CoreDesktop top bar menu from the federated repo
shellcheck / shellcheck (push) Successful in 21s

This commit is contained in:
2026-11-27 12:48:07 -07:00
parent e14a345016
commit 819bc199e7
6 changed files with 141 additions and 0 deletions
+17
View File
@@ -99,6 +99,23 @@ ensure_gext() {
pipx install --python "$(which python3)" gnome-extensions-cli --system-site-packages
}
# Turn on the GNOME extension $1 for this user by adding it to
# enabled-extensions, keeping the others. Unlike gnome-extensions enable, this
# works for an extension the running shell hasn't found yet, such as one a
# package has just installed; it loads at the next login.
enable_gnome_extension() {
local uuid="$1" enabled
enabled="$(gsettings get org.gnome.shell enabled-extensions)" || return 1
[[ "$enabled" == *"'$uuid'"* ]] && return 0
enabled="${enabled#@as }"
if [ "$enabled" = "[]" ]; then
enabled="['$uuid']"
else
enabled="${enabled%]}, '$uuid']"
fi
gsettings set org.gnome.shell enabled-extensions "$enabled"
}
# Function to remove pacman/AUR packages if installed
remove_packages() {
local packages=("$@")