mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2025-08-19 01:56:51 +02:00
Adding Theme Changing Script
This commit is contained in:
11
config/scripts/themechange.nix
Normal file
11
config/scripts/themechange.nix
Normal 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
|
||||
|
||||
''
|
Reference in New Issue
Block a user