Renamed gnome-extensions to disable-gnome-extensions and adjusted parameters

This commit is contained in:
Eric Renfro 2022-02-24 21:32:21 -05:00
parent 55548b8133
commit dffbe5a702

View file

@ -1,15 +1,16 @@
function gnome-extensions ()
function disable-gnome-extensions ()
{
case "$1" in
true)
echo "Enabling Gnome User Extensions"
gsettings set org.gnome.shell disable-user-extensions false
;;
false)
echo "Disabling Gnome User Extenions"
true|on|yes)
echo "Disabling Gnome User Extensions"
gsettings set org.gnome.shell disable-user-extensions true
;;
false|off|no)
echo "Disabling Gnome User Extenions"
gsettings set org.gnome.shell disable-user-extensions false
;;
*)
echo "Disables GNOME Extensions - In case of emergency"
echo "Usage: $0 true|false"
;;
esac