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
518 B
Bash
Raw Normal View History

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.
2023-12-07 05:11:26 +03:00
# Default name is `gnome.dconf`.
# Do this before changing settings and after, an then run `diff` to find out what to add to the main `gnome.dconf`.
2023-12-07 04:02:47 +03:00
# 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
}