sh/bash/gsettings.sh
2024-11-12 07:28:41 +01:00

15 lines
348 B
Bash

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