rwx/sh/gnome.sh

25 lines
543 B
Bash
Raw Normal View History

2024-11-18 11:40:20 +00:00
sh_gnome_proxy() {
local value
case "${1}" in
"on") value="manual" ;;
*) value="none" ;;
esac
gsettings set "org.gnome.system.proxy" "mode" "${value}"
}
2024-11-18 11:05:20 +00:00
sh_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-18 11:15:29 +00:00
sh_log_debug "${var}: ${bool}"
2024-11-12 06:28:41 +00:00
# not
2024-11-20 09:08:23 +00:00
bool="$(sh_not "${bool}")"
2024-11-18 11:15:29 +00:00
sh_log_debug "bool: ${bool}"
2024-11-12 06:28:41 +00:00
# set
gsettings set "${group}" "${name}" "${bool}"
2024-11-18 11:15:29 +00:00
sh_log_info "${var}: ${bool}"
2023-08-21 12:32:38 +00:00
}