fix(matugen): script converted to sh
This commit is contained in:
@@ -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 = {
|
||||||
|
|||||||
@@ -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
|
|
||||||
Reference in New Issue
Block a user