nix/home/program/bash/module/Dconf.nix

22 lines
621 B
Nix
Raw Normal View History

{ ... }:
{
text = ''
export _gdconf_path="''${HOME}/.config/linux/Gnome.dconf"
2024-04-06 03:03:58 +03:00
# Load Gnome settings.
function dconf_load() {
sed -i -e s/voronind/$(whoami)/g ''${_gdconf_path} ; dconf load / < ''${_gdconf_path}
}
2024-04-06 03:03:58 +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 the main `gnome.dconf`.
# Usage: dconf_save [FILE]
function dconf_save() {
local name="''${1}"
[[ "''${name}" = "" ]] && name="gnome.dconf"
dconf dump / > "''${name}"
}
'';
2024-04-06 03:03:58 +03:00
}