sh/bash/gsettings.sh

16 lines
346 B
Bash
Raw Normal View History

2024-11-12 05:43:20 +00:00
ws() {
2024-11-12 05:52:21 +00:00
local bool
local group="org.gnome.mutter"
2024-11-12 06:28:41 +00:00
local name="workspaces-only-on-primary"
local var="${group}/${name}"
# get
bool="$(gsettings get "${group}" "${name}")"
log_debug "${var}: ${bool}"
# not
2024-11-12 05:52:21 +00:00
bool="$(not "${bool}")"
2024-11-12 06:29:36 +00:00
log_debug "bool: ${bool}"
2024-11-12 06:28:41 +00:00
# set
gsettings set "${group}" "${name}" "${bool}"
log_info "${var}: ${bool}"
2023-08-21 12:32:38 +00:00
}