diff --git a/bash/gsettings.sh b/bash/gsettings.sh index 1b4a08b..d47db25 100644 --- a/bash/gsettings.sh +++ b/bash/gsettings.sh @@ -1,9 +1,15 @@ ws() { local bool local group="org.gnome.mutter" - local var="workspaces-only-on-primary" - bool="$(gsettings get "${group}" "${var}")" + local name="workspaces-only-on-primary" + local var="${group}/${name}" + # get + bool="$(gsettings get "${group}" "${name}")" + log_debug "${var}: ${bool}" + # not bool="$(not "${bool}")" - gsettings set "${group}" "${var}" "${bool}" - log_info "${group}/${var}: ${bool}" + log_debug "${var}: ${bool}" + # set + gsettings set "${group}" "${name}" "${bool}" + log_info "${var}: ${bool}" }