This repository has been archived on 2024-03-04. You can view files and clone it, but cannot push or open issues or pull requests.
linux/.config/bash/module/dconf.sh

17 lines
508 B
Bash
Raw Normal View History

2023-12-07 04:02:47 +03:00
export _gdconf_path="${HOME}/.config/linux/gnome.dconf"
2023-12-07 04:02:47 +03:00
# Load Gnome settings.
2023-12-07 01:44:42 +03:00
function dconf_load() {
2023-12-07 04:02:47 +03:00
sed -i -e s/voronind/$(whoami)/g ${_gdconf_path} ; dconf load / < ${_gdconf_path}
2023-12-07 00:42:06 +03:00
}
2023-12-07 04:02:47 +03:00
# Dump Gnome settings into the file.
# Default name is gnome.dconf.
# Do this before changing settings and after, an then run diff to find out what to add to main gnome.dconf.
# Usage: dconf_save [FILE]
2023-12-07 01:44:42 +03:00
function dconf_save() {
2023-12-07 04:02:47 +03:00
local name="${1}"
[[ "${name}" = "" ]] && name="gnome.dconf"
dconf dump / > "${name}"
2023-12-07 00:42:06 +03:00
}