mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2025-08-16 08:47:52 +02:00
Add new autorun nix file that has scripts that run on rebuild
This commit is contained in:
@ -11,6 +11,6 @@ pkgs.writeShellScriptBin "theme-selector" ''
|
||||
themechange "$chosen"
|
||||
else
|
||||
${pkgs.libnotify}/bin/notify-send "$chosen is building please wait" &
|
||||
themechange "$chosen"
|
||||
kitty -e themechange "$chosen"
|
||||
fi
|
||||
''
|
||||
|
@ -6,6 +6,6 @@ pkgs.writeShellScriptBin "themechange" ''
|
||||
else
|
||||
replacement="$1"
|
||||
sed -i "/^\s*theme[[:space:]]*=[[:space:]]*\"/s/\"\(.*\)\"/\"$replacement\"/" ${flakeDir}/flake.nix
|
||||
kitty -e sudo nixos-rebuild switch --flake ${flakeDir} && swaync-client -R && swaync-client -rs
|
||||
sudo nixos-rebuild switch --flake ${flakeDir}
|
||||
fi
|
||||
''
|
||||
|
Reference in New Issue
Block a user