Adding Theme Changing Script

This commit is contained in:
Tyler Kelley
2024-01-17 02:17:12 -06:00
parent 3bb920a1df
commit 78f5931d70
4 changed files with 19 additions and 3 deletions

View File

@@ -0,0 +1,11 @@
{ pkgs, flakeDir, }:
pkgs.writeShellScriptBin "themechange" ''
if [[ ! $@ ]];then
echo "No Theme Given"
else
replacement="$1"
sed -i "/^\s*theme[[:space:]]*=[[:space:]]*\"/s/\"\(.*\)\"/\"$replacement\"/" ${flakeDir}/flake.nix
fi
''