This commit is contained in:
Marc Beninca 2024-11-12 07:28:41 +01:00
parent 95828fe06c
commit 9da2ddeb6f
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -1,9 +1,15 @@
ws() { ws() {
local bool local bool
local group="org.gnome.mutter" local group="org.gnome.mutter"
local var="workspaces-only-on-primary" local name="workspaces-only-on-primary"
bool="$(gsettings get "${group}" "${var}")" local var="${group}/${name}"
# get
bool="$(gsettings get "${group}" "${name}")"
log_debug "${var}: ${bool}"
# not
bool="$(not "${bool}")" bool="$(not "${bool}")"
gsettings set "${group}" "${var}" "${bool}" log_debug "${var}: ${bool}"
log_info "${group}/${var}: ${bool}" # set
gsettings set "${group}" "${name}" "${bool}"
log_info "${var}: ${bool}"
} }