backgrounds: add hypr chan var 2

This commit is contained in:
vaxerski
2023-07-24 18:22:36 +02:00
parent 6db3c4ef5e
commit 9bad2a8180
5 changed files with 3 additions and 7 deletions

View File

@@ -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;