sh/bash/gsettings.sh
2024-11-12 07:29:36 +01:00

15 lines
346 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 "bool: ${bool}"
# set
gsettings set "${group}" "${name}" "${bool}"
log_info "${var}: ${bool}"
}