feat: add script to dump dconf and convert it to nix, and setup automove windows and gnome tweaks
This commit is contained in:
parent
9731c873a6
commit
906cb30ef2
4 changed files with 31 additions and 0 deletions
13
cleanUpDconf.js
Normal file
13
cleanUpDconf.js
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
import fs from "fs/promises"
|
||||||
|
|
||||||
|
const original = await fs.readFile("./dconf.settings", {encoding: "utf-8"})
|
||||||
|
|
||||||
|
let cleanedLines = []
|
||||||
|
|
||||||
|
original.split("\n").forEach((line) => {
|
||||||
|
if(!line.startsWith("app-picker-layout")) {
|
||||||
|
cleanedLines.push(line)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
await fs.writeFile("./dconf.settings", cleanedLines.join("\n"), "utf-8")
|
||||||
|
|
@ -130,6 +130,8 @@
|
||||||
gnomeExtensions.clipboard-indicator
|
gnomeExtensions.clipboard-indicator
|
||||||
gnomeExtensions.forge
|
gnomeExtensions.forge
|
||||||
gnomeExtensions.media-controls
|
gnomeExtensions.media-controls
|
||||||
|
gnomeExtensions.auto-move-windows
|
||||||
|
gnome-tweaks
|
||||||
nodejs_24
|
nodejs_24
|
||||||
pnpm
|
pnpm
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -53,6 +53,7 @@ with lib.gvariant;
|
||||||
"blur-my-shell@aunetx"
|
"blur-my-shell@aunetx"
|
||||||
"appindicatorsupport@rgcjonas.gmail.com"
|
"appindicatorsupport@rgcjonas.gmail.com"
|
||||||
"mediacontrols@cliffniff.github.com"
|
"mediacontrols@cliffniff.github.com"
|
||||||
|
"auto-move-windows@gnome-shell-extensions.gcampax.github.com"
|
||||||
];
|
];
|
||||||
disabled-extensions = [ ];
|
disabled-extensions = [ ];
|
||||||
favorite-apps = [
|
favorite-apps = [
|
||||||
|
|
@ -84,6 +85,13 @@ with lib.gvariant;
|
||||||
natural-scroll = false;
|
natural-scroll = false;
|
||||||
speed = -0.28205128205128205;
|
speed = -0.28205128205128205;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
"org/gnome/shell/extensions/auto-move-windows" = {
|
||||||
|
application-list = [
|
||||||
|
"io.bassi.Amberol.desktop:3"
|
||||||
|
"vesktop.desktop:3"
|
||||||
|
];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
8
dconf.sh
Executable file
8
dconf.sh
Executable file
|
|
@ -0,0 +1,8 @@
|
||||||
|
#!/usr/bin/env nix-shell
|
||||||
|
|
||||||
|
#! nix-shell -i bash --pure
|
||||||
|
#! nix-shell -p bash dconf dconf2nix nodejs_24
|
||||||
|
|
||||||
|
dconf dump / > dconf.settings
|
||||||
|
node ./cleanUpDconf.js
|
||||||
|
cat dconf.settings | dconf2nix -i dconf.settings -o dconf.gen.nix
|
||||||
Loading…
Add table
Add a link
Reference in a new issue