home: wallpapers: use fetchers

This commit is contained in:
Guanran Wang 2023-12-11 17:12:35 +08:00
parent defb43ea3d
commit 509083d27e
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8
10 changed files with 24 additions and 6 deletions

View file

@ -16,7 +16,7 @@
enable = true;
startupPrograms = [
"pgrep -x sxhkd > /dev/null || sxhkd"
"pgrep -x feh > /dev/null || feh --bg-fill ~/.local/share/backgrounds/wallpaper1.png"
"pgrep -x feh > /dev/null || feh --bg-fill ~/.local/share/backgrounds/aqua.png"
];
monitors = {
eDP-1 = ["I" "II" "III" "IV" "V" "VI" "VII" "VIII" "IX" "X"];

View file

@ -68,7 +68,7 @@
};
output = {
eDP-1 = {
bg = "~/.local/share/backgrounds/wallpaper1.png fill";
bg = "~/.local/share/backgrounds/aqua.png fill";
};
};

View file

@ -1,6 +1,24 @@
_: {
xdg.dataFile."backgrounds" = {
source = ./wallpapers;
recursive = true;
{pkgs, ...}: {
xdg.dataFile = {
### Local
"backgrounds/unixcloud.jpg".source = ./wallpapers/unixcloud.jpg; # https://www.deviantart.com/georgegach/art/Unix-Cloud-818259008
### Online
"backgrounds/aqua.png".source = pkgs.fetchurl {
url = "https://github.com/mashumarodesu/dots/blob/master/Assets/Aqua.png?raw=true"; # https://www.pixiv.net/en/artworks/106654974
hash = "sha256-JIat75RKz48a0BtniJBR1ifEk0tkkrHUrLPAHAz3Z1o=";
};
"backgrounds/summer.jpg".source = pkgs.fetchurl {
url = "https://images.hdqwalls.com/wallpapers/anime-couple-on-bicycle-1u.jpg"; # https://www.pixiv.net/en/artworks/49983419
hash = "sha256-J6ckWjfPyviUsDfswOYVPB4UEOBQ63Yr5yeJtOd9/2k=";
};
"backgrounds/macos-mojave-day.jpg".source = pkgs.fetchurl {
url = "https://media.idownloadblog.com/wp-content/uploads/2018/06/macOS-Mojave-Day-wallpaper.jpg";
hash = "sha256-DtIaO7jWkhdU4EqJL8QfAaaajRcME79/O8szk1po/Go=";
};
"backgrounds/macos-mojave-night.jpg".source = pkgs.fetchurl {
url = "https://media.idownloadblog.com/wp-content/uploads/2018/06/macOS-Mojave-Night-wallpaper.jpg";
hash = "sha256-Zv7uvjSNACpI2Yck22bsA8gwVaju2Yght7y09xko9xw=";
};
};
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 598 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.7 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 MiB