feat: improve theme generation
This commit is contained in:
@@ -17,7 +17,7 @@ pdf = [
|
|||||||
]
|
]
|
||||||
image = [
|
image = [
|
||||||
{ run = 'xdg-open "$@"', desc = "Open" },
|
{ 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]
|
[open]
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
cd "$(dirname "$0")/.."
|
cd "$(dirname "$0")/.."
|
||||||
./setup.sh $1
|
./setup.sh $(readlink --canonicalize $1)
|
||||||
|
|||||||
@@ -30,9 +30,7 @@ fi
|
|||||||
# │ System config file │
|
# │ System config file │
|
||||||
# └ ┘
|
# └ ┘
|
||||||
# (currently only env)
|
# (currently only env)
|
||||||
confirmation=""
|
if [[ "$2" == "sys" ]]; then
|
||||||
read -p "Also install the system-wide environment file? (y/N) " confirmation
|
|
||||||
if [[ "$confirmation" == "y" ]]; then
|
|
||||||
sudo cp ./system/environment /etc/environment
|
sudo cp ./system/environment /etc/environment
|
||||||
fi
|
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 is specified, then the previous one is used
|
||||||
# If no image was used previously and none is specified, an error is raised
|
# If no image was used previously and none is specified, an error is raised
|
||||||
if [[ -n $1 ]]; then
|
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
|
mkdir ~/.local/state/janishutz &> /dev/null || true
|
||||||
echo "$1" >~/.local/state/janishutz/imgcache
|
echo "$1" >~/.local/state/janishutz/imgcache
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user