Merge pull request #167 from MarkusVolk/main
Add matugen templates for foot an fuzzel
This commit is contained in:
commit
4c79999a65
5 changed files with 81 additions and 0 deletions
|
|
@ -53,6 +53,18 @@ Singleton {
|
||||||
lines.push(
|
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\"")
|
"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"')
|
||||||
|
}
|
||||||
|
if (Settings.data.matugen.fuzzel) {
|
||||||
|
lines.push("\n[templates.fuzzel]")
|
||||||
|
lines.push('input_path = "' + Quickshell.shellDir + '/Assets/Matugen/templates/fuzzel.conf"')
|
||||||
|
lines.push('output_path = "~/.config/fuzzel/themes/noctalia"')
|
||||||
|
lines.push('post_hook = "sed -i /themes/d ~/.config/fuzzel/fuzzel.ini && echo include=~/.config/fuzzel/themes/noctalia >> ~/.config/fuzzel/fuzzel.ini"')
|
||||||
|
}
|
||||||
|
|
||||||
return lines.join("\n") + "\n"
|
return lines.join("\n") + "\n"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
30
Assets/Matugen/templates/foot.conf
Normal file
30
Assets/Matugen/templates/foot.conf
Normal file
|
|
@ -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 }}
|
||||||
15
Assets/Matugen/templates/fuzzel.conf
Normal file
15
Assets/Matugen/templates/fuzzel.conf
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
# Fuzzel Colors
|
||||||
|
# Generated with Matugen
|
||||||
|
|
||||||
|
[colors]
|
||||||
|
background={{colors.background.default.hex_stripped}}CC
|
||||||
|
text={{colors.on_surface.default.hex_stripped}}ff
|
||||||
|
prompt={{colors.secondary.default.hex_stripped}}ff
|
||||||
|
placeholder={{colors.tertiary.default.hex_stripped}}ff
|
||||||
|
input={{colors.primary.default.hex_stripped}}ff
|
||||||
|
match={{colors.tertiary.default.hex_stripped}}ff
|
||||||
|
selection={{colors.primary.default.hex_stripped}}80
|
||||||
|
selection-text={{colors.on_surface.default.hex_stripped}}ff
|
||||||
|
selection-match={{colors.on_primary.default.hex_stripped}}ff
|
||||||
|
counter={{colors.secondary.default.hex_stripped}}ff
|
||||||
|
border={{colors.primary.default.hex_stripped}}ff
|
||||||
|
|
@ -242,6 +242,8 @@ Singleton {
|
||||||
property bool qt5: false
|
property bool qt5: false
|
||||||
property bool kitty: false
|
property bool kitty: false
|
||||||
property bool ghostty: false
|
property bool ghostty: false
|
||||||
|
property bool foot: false
|
||||||
|
property bool fuzzel: false
|
||||||
}
|
}
|
||||||
|
|
||||||
// night light
|
// night light
|
||||||
|
|
|
||||||
|
|
@ -428,5 +428,27 @@ ColumnLayout {
|
||||||
MatugenService.generateFromWallpaper()
|
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()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
NCheckbox {
|
||||||
|
label: "Fuzzel"
|
||||||
|
description: "Write ~/.config/fuzzel/themes/noctalia and reload"
|
||||||
|
checked: Settings.data.matugen.fuzzel
|
||||||
|
onToggled: checked => {
|
||||||
|
Settings.data.matugen.fuzzel = checked
|
||||||
|
if (Settings.data.colorSchemes.useWallpaperColors)
|
||||||
|
MatugenService.generateFromWallpaper()
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue