Install the CoreDesktop top bar menu from the federated repo
shellcheck / shellcheck (push) Successful in 21s
shellcheck / shellcheck (push) Successful in 21s
This commit is contained in:
@@ -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=("$@")
|
||||
|
||||
Reference in New Issue
Block a user