{ 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 sudo nixos-rebuild switch --flake ${flakeDir}/#workstation swaync-client -R swaync-client -rs fi ''