diff options
author | vaxerski <[email protected]> | 2023-07-24 18:22:36 +0200 |
---|---|---|
committer | vaxerski <[email protected]> | 2023-07-24 18:22:39 +0200 |
commit | 9bad2a81809bdaa2020006427af2110b6a912c3b (patch) | |
tree | 07aabdafe41d7f4cc80f880f50833ce10148062a /src/render/OpenGL.cpp | |
parent | 6db3c4ef5ec21f415577a26b0cdf57c98a778eb5 (diff) | |
download | Hyprland-9bad2a81809bdaa2020006427af2110b6a912c3b.tar.gz Hyprland-9bad2a81809bdaa2020006427af2110b6a912c3b.zip |
backgrounds: add hypr chan var 2
Diffstat (limited to 'src/render/OpenGL.cpp')
-rw-r--r-- | src/render/OpenGL.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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; |