From 421d70a3d8230b064448ab13878bc053bbe7ebc1 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Wed, 9 Oct 2024 17:42:29 -0400 Subject: [PATCH] packages: update osu-backgrounds It's that time of year again. --- home/dwm.nix | 4 ++-- home/hyprland.nix | 2 +- packages/osu-backgrounds.nix | 14 +++++++++++++- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/home/dwm.nix b/home/dwm.nix index 4039c994..70b4d65c 100644 --- a/home/dwm.nix +++ b/home/dwm.nix @@ -210,8 +210,8 @@ in #!/usr/bin/env fish feh --bg-fill \ - (random choice (fd . ${osu-backgrounds}/2024-07-15-Aerial-Antics-Art-Contest-All-Entries --follow -e jpg -e png)) \ - (random choice (fd . ${osu-backgrounds}/2024-07-15-Aerial-Antics-Art-Contest-All-Entries --follow -e jpg -e png)) + (random choice (fd . ${osu-backgrounds}/2024-10-09-Autumn-2024-Fanart-Contest-All-Entries --follow -e jpg -e png)) \ + (random choice (fd . ${osu-backgrounds}/2024-10-09-Autumn-2024-Fanart-Contest-All-Entries --follow -e jpg -e png)) ''; }; diff --git a/home/hyprland.nix b/home/hyprland.nix index 2436234c..bf84ca2d 100644 --- a/home/hyprland.nix +++ b/home/hyprland.nix @@ -302,7 +302,7 @@ in #!/usr/bin/env fish for monitor in (hyprctl monitors -j | jq -r '.[].name') - ~/.config/${setBackgroundScript} "$monitor" "$(random choice $(fd . ${osu-backgrounds}/2024-07-15-Aerial-Antics-Art-Contest-All-Entries --follow -e jpg -e png))" + ~/.config/${setBackgroundScript} "$monitor" "$(random choice $(fd . ${osu-backgrounds}/2024-10-09-Autumn-2024-Fanart-Contest-All-Entries --follow -e jpg -e png))" end ''; }; diff --git a/packages/osu-backgrounds.nix b/packages/osu-backgrounds.nix index 97f13bef..9bc591c8 100644 --- a/packages/osu-backgrounds.nix +++ b/packages/osu-backgrounds.nix @@ -6,7 +6,7 @@ stdenvNoCC.mkDerivation { pname = "osu-backgrounds"; - version = "2024-07-15"; + version = "2024-10-09"; srcs = [ (fetchzip { @@ -204,6 +204,13 @@ stdenvNoCC.mkDerivation { hash = "sha256-K2GYmjmBarJe7FDw+Hc+NIjBRAJDuobZfbFTN7KbHnM="; stripRoot = false; }) + + (fetchzip { + name = "2024-10-09 Autumn 2024 Fanart Contest All Entries"; + url = "https://assets.ppy.sh/contests/221/Autumn2024FanartSubmissions.zip"; + hash = "sha256-mHT9+nslxUDJp96gU/UjzEifG1BIOu+T4LhgN/wJDts="; + stripRoot = false; + }) ]; sourceRoot = "."; @@ -216,6 +223,11 @@ stdenvNoCC.mkDerivation { mv $BASE/$DIR . && rm -r $BASE && mv $DIR $BASE + BASE="2024-10-09-Autumn-2024-Fanart-Contest-All-Entries" + DIR="all-ordered" + + mv $BASE/$DIR . && rm -r $BASE && mv $DIR $BASE + mkdir -p $out cp -r */ $out