rwx/sh/gnome.sh
2024-11-18 12:19:19 +01:00

15 lines
380 B
Bash

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