From 9bad2a81809bdaa2020006427af2110b6a912c3b Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Mon, 24 Jul 2023 18:22:36 +0200 Subject: backgrounds: add hypr chan var 2 --- src/render/OpenGL.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/render/OpenGL.cpp') 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; -- cgit v1.2.3