feat: improve theme gen

This commit is contained in:
janishutz committed 2026-10-04 15:37:53 +02:00
1 parent a8439f1033
commit 4d15735df4
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -17,7 +17,7 @@ pdf = [
]
image = [
{ run = 'xdg-open %s', desc = "Open" },
{ run = 'set-theme %s1', desc = "Set desktop theme from this image" },
{ run = 'set-theme %s1', desc = "Set desktop theme from this image", block = true },
]
[open]
+2 -2
View File
@@ -56,7 +56,7 @@ cp ./linters/indentconfig_import.yaml ~/.indentconfig.yaml
# If no image is specified, then the previous one is used
# If no image was used previously and none is specified, an error is raised
if [[ -n $1 ]]; then
matugen image --prefer closest-to-fallback --fallback-color "#0000FF" --type scheme-smart $1
matugen image --type scheme-smart $1
mkdir ~/.local/state/janishutz &> /dev/null || true
echo "$1" >~/.local/state/janishutz/imgcache
else
@@ -65,7 +65,7 @@ else
exit 1
else
echo "Falling back to previous image"
matugen image --prefer value $(cat ~/.local/state/janishutz/imgcache)
matugen image $(cat ~/.local/state/janishutz/imgcache)
fi
fi