diff --git a/Makefile b/Makefile index ff383ef7..1262e234 100644 --- a/Makefile +++ b/Makefile @@ -44,12 +44,7 @@ install: cp -f ./hyprctl/hyprctl ${PREFIX}/bin if [ ! -f ${PREFIX}/share/wayland-sessions/hyprland.desktop ]; then cp ./example/hyprland.desktop ${PREFIX}/share/wayland-sessions; fi mkdir -p ${PREFIX}/share/hyprland - cp ./assets/wall_2K.png ${PREFIX}/share/hyprland - cp ./assets/wall_4K.png ${PREFIX}/share/hyprland - cp ./assets/wall_8K.png ${PREFIX}/share/hyprland - cp ./assets/wall_anime_2K.png ${PREFIX}/share/hyprland - cp ./assets/wall_anime_4K.png ${PREFIX}/share/hyprland - cp ./assets/wall_anime_8K.png ${PREFIX}/share/hyprland + cp ./assets/wall_* ${PREFIX}/share/hyprland mkdir -p ${PREFIX}/share/man/man1 install -m644 ./docs/*.1 ${PREFIX}/share/man/man1 diff --git a/assets/wall_anime2_2K.png b/assets/wall_anime2_2K.png new file mode 100644 index 00000000..5a465efa Binary files /dev/null and b/assets/wall_anime2_2K.png differ diff --git a/assets/wall_anime2_4K.png b/assets/wall_anime2_4K.png new file mode 100644 index 00000000..b04e6d00 Binary files /dev/null and b/assets/wall_anime2_4K.png differ diff --git a/assets/wall_anime2_8K.png b/assets/wall_anime2_8K.png new file mode 100644 index 00000000..b8da18ef Binary files /dev/null and b/assets/wall_anime2_8K.png differ diff --git a/src/render/OpenGL.cpp b/src/render/OpenGL.cpp index f9f3f34f..1d142650 100644 --- a/src/render/OpenGL.cpp +++ b/src/render/OpenGL.cpp @@ -1605,6 +1605,7 @@ void CHyprOpenGLImpl::createBGTextureForMonitor(CMonitor* pMonitor) { std::random_device dev; std::mt19937 engine(dev()); std::uniform_int_distribution<> distribution(0, 10); + std::uniform_int_distribution<> distribution2(0, 1); const bool USEANIME = *PFORCEHYPRCHAN || distribution(engine) % 2 == 0; // about 50% I think @@ -1620,7 +1621,7 @@ void CHyprOpenGLImpl::createBGTextureForMonitor(CMonitor* pMonitor) { // or configure the paths at build time // get the adequate tex - std::string texPath = "/usr/share/hyprland/wall_" + std::string(USEANIME ? "anime_" : ""); + std::string texPath = "/usr/share/hyprland/wall_" + std::string(USEANIME ? (distribution2(engine) == 0 ? "anime_" : "anime2_") : ""); // check if wallpapers exist Vector2D textureSize;