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 | |
parent | 6db3c4ef5ec21f415577a26b0cdf57c98a778eb5 (diff) | |
download | Hyprland-9bad2a81809bdaa2020006427af2110b6a912c3b.tar.gz Hyprland-9bad2a81809bdaa2020006427af2110b6a912c3b.zip |
backgrounds: add hypr chan var 2
-rw-r--r-- | Makefile | 7 | ||||
-rw-r--r-- | assets/wall_anime2_2K.png | bin | 0 -> 523055 bytes | |||
-rw-r--r-- | assets/wall_anime2_4K.png | bin | 0 -> 1387297 bytes | |||
-rw-r--r-- | assets/wall_anime2_8K.png | bin | 0 -> 1378652 bytes | |||
-rw-r--r-- | src/render/OpenGL.cpp | 3 |
5 files changed, 3 insertions, 7 deletions
@@ -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 Binary files differnew file mode 100644 index 00000000..5a465efa --- /dev/null +++ b/assets/wall_anime2_2K.png diff --git a/assets/wall_anime2_4K.png b/assets/wall_anime2_4K.png Binary files differnew file mode 100644 index 00000000..b04e6d00 --- /dev/null +++ b/assets/wall_anime2_4K.png diff --git a/assets/wall_anime2_8K.png b/assets/wall_anime2_8K.png Binary files differnew file mode 100644 index 00000000..b8da18ef --- /dev/null +++ b/assets/wall_anime2_8K.png 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; |