From 9da2ddeb6f127ec8c41776305484fabb61a5e170 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Tue, 12 Nov 2024 07:28:41 +0100 Subject: [PATCH] ws --- bash/gsettings.sh | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) 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}" }