fixed chscheme and chpaper to work with new colorscheme and wallpaper variable locations

This commit is contained in:
pagedmov
2024-11-06 00:35:37 -05:00
parent 6ccc57f95e
commit 115384a926
10 changed files with 32 additions and 20 deletions

View File

@@ -18,7 +18,7 @@ pkgs.writeShellScriptBin "chscheme" ''
exit 1
fi
echo "$selected_scheme" | xargs -I {} sed -i '/base16scheme\s*=\s*"/s/"[^"]*"/"{}"/' "$FLAKEPATH"/flake.nix
echo "$selected_scheme" | xargs -I {} sed -i '/^[[:space:]]*scheme\s*=\s*"/s/"[^"]*"/"{}"/' "$FLAKEPATH"/modules/sys/environment/stylix.nix
if [ $? -ne 0 ]; then
echo "Failed to change color scheme."
exit 1