feat: improve theme generation

This commit is contained in:
2026-09-02 16:14:50 +02:00
parent a9c804a781
commit 6b1f915efc
3 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ pdf = [
]
image = [
{ run = 'xdg-open "$@"', desc = "Open" },
{ run = 'set-theme "$@"', desc = "Set desktop theme from this image" },
{ run = 'set-theme %s1', desc = "Set desktop theme from this image" },
]
[open]
+1 -1
View File
@@ -1,4 +1,4 @@
#!/bin/sh
cd "$(dirname "$0")/.."
./setup.sh $1
./setup.sh $(readlink --canonicalize $1)
+2 -4
View File
@@ -30,9 +30,7 @@ fi
# │ System config file │
# └ ┘
# (currently only env)
confirmation=""
read -p "Also install the system-wide environment file? (y/N) " confirmation
if [[ "$confirmation" == "y" ]]; then
if [[ "$2" == "sys" ]]; then
sudo cp ./system/environment /etc/environment
fi
@@ -58,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 value $1
matugen image --prefer closest-to-fallback --fallback-color "#0000FF" --type scheme-smart $1
mkdir ~/.local/state/janishutz &> /dev/null || true
echo "$1" >~/.local/state/janishutz/imgcache
else