sh/bash/proxy.sh

9 lines
179 B
Bash
Raw Normal View History

2023-05-09 20:02:34 +00:00
function socks {
local value
case "${1}" in
'on') value='manual' ;;
*) value='none' ;;
esac
gsettings set 'org.gnome.system.proxy' 'mode' "${value}"
}