persist wallpaper config
This commit is contained in:
parent
33e2f8a23a
commit
51ef0a6c74
2 changed files with 3 additions and 3 deletions
|
@ -65,7 +65,7 @@ _: {
|
|||
|
||||
files = [
|
||||
".config/gh/hosts.yml"
|
||||
".config/wallpaper_tags"
|
||||
".config/wallpaper_config"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -31,7 +31,7 @@ if [ -n "$WALLHAVEN_API_KEY"]; then
|
|||
fi
|
||||
|
||||
notify-send -r 9897 -i information -t 1000 "Wallpapers" "Downloading..."
|
||||
URL="https://wallhaven.cc/api/v1/search?${WALLHAVEN_API_KEY}${TAGS}${CATEGORY}${PURITY}atleast=3840x2160&ratios=16x9&sorting=random"
|
||||
URL="https://wallhaven.cc/api/v1/search?${WALLHAVEN_API_KEY}${TAGS}${CATEGORIES}${PURITY}atleast=3840x2160&ratios=16x9&sorting=random"
|
||||
ID="$(curl --silent "$URL" | jq -r '.data[0].id')"
|
||||
IMAGE_META=$(curl --silent "https://wallhaven.cc/api/v1/w/$ID")
|
||||
IMAGE_URL="$(echo "$IMAGE_META" | jq -r '.data.path')"
|
||||
|
|
Loading…
Reference in a new issue