15 lines
346 B
Bash
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}"
|
|
}
|