From 4d15735df4838df9a4d169552abe1a21104f2fb3 Mon Sep 17 00:00:00 2001 From: Janis Hutz Date: Sun, 4 Oct 2026 15:37:51 +0200 Subject: [PATCH] feat: improve theme gen --- config/yazi/yazi.toml | 2 +- setup.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/yazi/yazi.toml b/config/yazi/yazi.toml index 5720c52..03fab94 100644 --- a/config/yazi/yazi.toml +++ b/config/yazi/yazi.toml @@ -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] diff --git a/setup.sh b/setup.sh index fa5fa3e..00b19e9 100755 --- a/setup.sh +++ b/setup.sh @@ -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