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 a8ee289a6e
commit beb612e4b5
Signed by: psi-jack
GPG key ID: 14977F3A50D9A5BF

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