diff --git a/Assets/Matugen/Matugen.qml b/Assets/Matugen/Matugen.qml index b6e2d2c..4bc210a 100644 --- a/Assets/Matugen/Matugen.qml +++ b/Assets/Matugen/Matugen.qml @@ -52,6 +52,12 @@ Singleton { lines.push('output_path = "~/.config/ghostty/themes/noctalia"') lines.push("post_hook = \"grep -q '^theme *= *' ~/.config/ghostty/config; and sed -i 's/^theme *= *.*/theme = noctalia/' ~/.config/ghostty/config; or echo 'theme = noctalia' >> ~/.config/ghostty/config\"") } + if (Settings.data.matugen.foot) { + lines.push("\n[templates.foot]") + lines.push('input_path = "' + Quickshell.shellDir + '/Assets/Matugen/templates/foot.conf"') + lines.push('output_path = "~/.config/foot/themes/noctalia"') + lines.push('post_hook = "sed -i /themes/d ~/.config/foot/foot.ini && echo include=~/.config/foot/themes/noctalia >> ~/.config/foot/foot.ini"') + } return lines.join("\n") + "\n" } diff --git a/Assets/Matugen/templates/foot.conf b/Assets/Matugen/templates/foot.conf new file mode 100644 index 0000000..97415d6 --- /dev/null +++ b/Assets/Matugen/templates/foot.conf @@ -0,0 +1,30 @@ +[colors] +background={{ colors.background.default.hex_stripped }} +foreground={{ colors.on_surface.default.hex_stripped }} +regular0={{ colors.surface.default.hex_stripped }} +regular1={{ colors.error.default.hex_stripped }} +regular2={{ colors.primary.default.hex_stripped }} +regular3={{ colors.tertiary.default.hex_stripped }} +regular4={{ colors.on_primary_container.default.hex_stripped }} +regular5={{ colors.on_secondary_container.default.hex_stripped }} +regular6={{ colors.secondary.default.hex_stripped }} +regular7={{ colors.on_surface.default.hex_stripped }} +bright0={{ colors.surface_bright.default.hex_stripped }} +bright1={{ colors.error.default.hex_stripped }} +bright2={{ colors.primary.default.hex_stripped }} +bright3={{ colors.tertiary.default.hex_stripped }} +bright4={{ colors.on_primary_container.default.hex_stripped }} +bright5={{ colors.on_secondary_container.default.hex_stripped }} +bright6={{ colors.secondary.default.hex_stripped }} +bright7={{ colors.on_surface.default.hex_stripped }} +dim0=45475A +dim1=F38BA8 +dim2=A6E3A1 +dim3=F9E2AF +dim4=89B4FA +dim5=F5C2E7 +dim6=94E2D5 +dim7=BAC2DE +selection-foreground={{ colors.primary.default.hex_stripped }} +selection-background={{ colors.on_primary.default.hex_stripped }} +cursor={{ colors.surface_variant.default.hex_stripped }} {{ colors.on_surface.default.hex_stripped }} diff --git a/Commons/Settings.qml b/Commons/Settings.qml index 17187be..9ced152 100644 --- a/Commons/Settings.qml +++ b/Commons/Settings.qml @@ -267,6 +267,7 @@ Singleton { property bool qt5: false property bool kitty: false property bool ghostty: false + property bool foot: false } // night light diff --git a/Modules/SettingsPanel/Tabs/ColorSchemeTab.qml b/Modules/SettingsPanel/Tabs/ColorSchemeTab.qml index cc0c599..2fa0a8a 100644 --- a/Modules/SettingsPanel/Tabs/ColorSchemeTab.qml +++ b/Modules/SettingsPanel/Tabs/ColorSchemeTab.qml @@ -428,5 +428,16 @@ ColumnLayout { MatugenService.generateFromWallpaper() } } + + NCheckbox { + label: "Foot" + description: "Write ~/.config/foot/themes/noctalia and reload" + checked: Settings.data.matugen.foot + onToggled: checked => { + Settings.data.matugen.foot = checked + if (Settings.data.colorSchemes.useWallpaperColors) + MatugenService.generateFromWallpaper() + } + } } }