rwx/sh/gnome.sh

25 lines
549 B
Bash
Raw Normal View History

2024-11-29 17:56:59 +00:00
rwx_gnome_proxy() {
2024-11-18 11:40:20 +00:00
local value
case "${1}" in
"on") value="manual" ;;
*) value="none" ;;
esac
gsettings set "org.gnome.system.proxy" "mode" "${value}"
}
2024-11-29 17:56:59 +00:00
rwx_gnome_workspaces_primary() {
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}")"
2024-11-29 18:58:07 +00:00
rwx_log_debug "${var}: ${bool}"
2024-11-12 06:28:41 +00:00
# not
2024-11-29 18:58:07 +00:00
bool="$(rwx_not "${bool}")"
rwx_log_debug "bool: ${bool}"
2024-11-12 06:28:41 +00:00
# set
gsettings set "${group}" "${name}" "${bool}"
2024-11-29 18:58:07 +00:00
rwx_log_info "${var}: ${bool}"
2023-08-21 12:32:38 +00:00
}