fix(matugen): script converted to sh

This commit is contained in:
kenji
2026-01-10 23:06:36 -06:00
parent 461b1099ad
commit 5edc88fc23
2 changed files with 14 additions and 13 deletions
+14 -2
View File
@@ -14,7 +14,19 @@
}; };
# Copy static templates # Copy static templates
home.file.".config/matugen/templates/theme-switch".source = ./templates/theme-switch; home.file.".config/matugen/templates/theme-switch".text = ''
#!/bin/sh
# Generated by Matugen
# mode will be replaced by 'dark' or 'light'
MODE="{{mode}}"
if [ "$MODE" = "dark" ]; then
${pkgs.dconf}/bin/dconf write /org/gnome/desktop/interface/color-scheme "'prefer-dark'"
else
${pkgs.dconf}/bin/dconf write /org/gnome/desktop/interface/color-scheme "'prefer-light'"
fi
'';
home.file.".config/matugen/templates/cava".source = ./templates/cava; home.file.".config/matugen/templates/cava".source = ./templates/cava;
home.file.".config/matugen/templates/firefox".source = ./templates/firefox; home.file.".config/matugen/templates/firefox".source = ./templates/firefox;
home.file.".config/matugen/templates/ghostty".source = ./templates/ghostty; home.file.".config/matugen/templates/ghostty".source = ./templates/ghostty;
@@ -343,7 +355,7 @@
gtk = { gtk = {
enable = true; enable = true;
theme = { theme = {
name = "adw-gtk3-dark"; name = "adw-gtk3";
package = pkgs.adw-gtk3; package = pkgs.adw-gtk3;
}; };
iconTheme = { iconTheme = {
-11
View File
@@ -1,11 +0,0 @@
#!/bin/sh
# Generated by Matugen
# mode will be replaced by 'dark' or 'light'
MODE="{{mode}}"
if [ "$MODE" = "dark" ]; then
${pkgs.dconf}/bin/dconf write /org/gnome/desktop/interface/color-scheme "'prefer-dark'"
else
${pkgs.dconf}/bin/dconf write /org/gnome/desktop/interface/color-scheme "'prefer-light'"
fi