refactor(history): commit development branch
All checks were successful
/ job (push) Successful in 1m12s
All checks were successful
/ job (push) Successful in 1m12s
new development branch from root commit
This commit is contained in:
parent
3e562930f6
commit
020aaa0b9a
94 changed files with 4804 additions and 0 deletions
71
sh/gnome.sh
Normal file
71
sh/gnome.sh
Normal file
|
@ -0,0 +1,71 @@
|
|||
# ╭───────┬────────────╮
|
||||
# │ gnome │ background │
|
||||
# ╰───────┴────────────╯
|
||||
|
||||
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"
|
||||
}
|
||||
|
||||
# ╭───────┬───────╮
|
||||
# │ gnome │ proxy │
|
||||
# ╰───────┴───────╯
|
||||
|
||||
rwx_gnome_proxy() {
|
||||
local value
|
||||
case "${1}" in
|
||||
"on") value="manual" ;;
|
||||
*) value="none" ;;
|
||||
esac
|
||||
gsettings set "org.gnome.system.proxy" "mode" "${value}"
|
||||
}
|
||||
|
||||
# ╭───────┬─────╮
|
||||
# │ gnome │ set │
|
||||
# ╰───────┴─────╯
|
||||
|
||||
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}"
|
||||
}
|
||||
|
||||
# ╭───────┬────────────╮
|
||||
# │ gnome │ workspaces │
|
||||
# ╰───────┴────────────╯
|
||||
|
||||
rwx_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}")"
|
||||
rwx_log_debug "${var}: ${bool}"
|
||||
# not
|
||||
bool="$(rwx_not "${bool}")"
|
||||
rwx_log_debug "bool: ${bool}"
|
||||
# set
|
||||
gsettings set "${group}" "${name}" "${bool}"
|
||||
rwx_log_info "${var}: ${bool}"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue