rwx/sh/gnome.sh
2024-11-20 09:18:40 +01:00

24 lines
540 B
Bash

sh_gnome_proxy() {
local value
case "${1}" in
"on") value="manual" ;;
*) value="none" ;;
esac
gsettings set "org.gnome.system.proxy" "mode" "${value}"
}
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}"
}