gsettings/draft
This commit is contained in:
parent
006abeb31c
commit
07fc4c6eb4
1 changed files with 31 additions and 0 deletions
31
sh/gnome.sh
31
sh/gnome.sh
|
@ -1,3 +1,34 @@
|
|||
rwx_gnome_set() {
|
||||
local group="${1}"
|
||||
local key="${2}"
|
||||
local value="${3}"
|
||||
[ -n "${value}" ] || return
|
||||
gsettings set "${group}" "${key}" "${value}"
|
||||
}
|
||||
|
||||
rwx_gnome_set_background() {
|
||||
local key="${1}"
|
||||
local value="${2}"
|
||||
[ -n "${value}" ] || return
|
||||
rwx_gnome_set "org.gnome.desktop.background" "${key}" "${value}"
|
||||
}
|
||||
|
||||
rwx_gnome_background_black() {
|
||||
rwx_gnome_set_background "color-shading-type" "solid"
|
||||
rwx_gnome_set_background "primary-color" "#000000"
|
||||
}
|
||||
|
||||
rwx_gnome_background_white() {
|
||||
rwx_gnome_set_background "color-shading-type" "solid"
|
||||
rwx_gnome_set_background "primary-color" "#ffffff"
|
||||
}
|
||||
|
||||
rwx_gnome_background_win3() {
|
||||
rwx_gnome_set_background "color-shading-type" "vertical"
|
||||
rwx_gnome_set_background "primary-color" "#000000"
|
||||
rwx_gnome_set_background "secondary-color" "#0000ff"
|
||||
}
|
||||
|
||||
rwx_gnome_proxy() {
|
||||
local value
|
||||
case "${1}" in
|
||||
|
|
Loading…
Reference in a new issue