GithubHelp home page GithubHelp logo

duckonaut / hyprlens Goto Github PK

View Code? Open in Web Editor NEW
10.0 10.0 0.0 8 KB

Hyprland plugin for a different, shared texture as the transparent x-ray background

Makefile 25.65% C++ 74.35%
hyprland hyprland-plugin hyprload

hyprlens's Introduction

Duckonaut's GitHub stats

Top Langs

🕴️

hyprlens's People

Contributors

duckonaut avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

hyprlens's Issues

plugin fails to build

g++ -c -o obj/main.o src/main.cpp -g -fPIC --no-gnu-unique -std=c++23 -fdiagnostics-color=always `pkg-config --cflags hyprland pixman-1 libdrm` -Iinclude
src/main.cpp: In function ‘void hijackBlurFramebuffer()’:
src/main.cpp:100:45: error: no matching function for call to ‘CHyprOpenGLImpl::renderTexture(CTexture&, wlr_box*, float, int, bool, bool)’
  100 |                 g_pHyprOpenGL->renderTexture(*g_pTexture, &wholeMonitor, 1.f, 0, false, true);
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/include/hyprland/src/render/Renderer.hpp:8,
                 from /usr/local/include/hyprland/src/Compositor.hpp:26,
                 from src/main.cpp:8:
/usr/local/include/hyprland/src/render/OpenGL.hpp:125:27: note: candidate: ‘void CHyprOpenGLImpl::renderTexture(wlr_texture*, CBox*, float, int, bool)’
  125 |     void                  renderTexture(wlr_texture*, CBox*, float a, int round = 0, bool allowCustomUV = false);
      |                           ^~~~~~~~~~~~~
/usr/local/include/hyprland/src/render/OpenGL.hpp:125:27: note:   candidate expects 5 arguments, 6 provided
/usr/local/include/hyprland/src/render/OpenGL.hpp:126:27: note: candidate: ‘void CHyprOpenGLImpl::renderTexture(const CTexture&, CBox*, float, int, bool, bool)’
  126 |     void                  renderTexture(const CTexture&, CBox*, float a, int round = 0, bool discardActive = false, bool allowCustomUV = false);
      |                           ^~~~~~~~~~~~~
/usr/local/include/hyprland/src/render/OpenGL.hpp:126:58: note:   no known conversion for argument 2 from ‘wlr_box*’ to ‘CBox*’
  126 |     void                  renderTexture(const CTexture&, CBox*, float a, int round = 0, bool discardActive = false, bool allowCustomUV = false);
      |                                                          ^~~~~
src/main.cpp:103:45: error: no matching function for call to ‘CHyprOpenGLImpl::renderTexture(CTexture&, wlr_box*, float, int)’
  103 |                 g_pHyprOpenGL->renderTexture(*g_pTexture, &wholeMonitor, 1.f, 0);
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/hyprland/src/render/OpenGL.hpp:125:27: note: candidate: ‘void CHyprOpenGLImpl::renderTexture(wlr_texture*, CBox*, float, int, bool)’
  125 |     void                  renderTexture(wlr_texture*, CBox*, float a, int round = 0, bool allowCustomUV = false);
      |                           ^~~~~~~~~~~~~
/usr/local/include/hyprland/src/render/OpenGL.hpp:125:41: note:   no known conversion for argument 1 from ‘CTexture’ to ‘wlr_texture*’
  125 |     void                  renderTexture(wlr_texture*, CBox*, float a, int round = 0, bool allowCustomUV = false);
      |                                         ^~~~~~~~~~~~
/usr/local/include/hyprland/src/render/OpenGL.hpp:126:27: note: candidate: ‘void CHyprOpenGLImpl::renderTexture(const CTexture&, CBox*, float, int, bool, bool)’
  126 |     void                  renderTexture(const CTexture&, CBox*, float a, int round = 0, bool discardActive = false, bool allowCustomUV = false);
      |                           ^~~~~~~~~~~~~
/usr/local/include/hyprland/src/render/OpenGL.hpp:126:58: note:   no known conversion for argument 2 from ‘wlr_box*’ to ‘CBox*’
  126 |     void                  renderTexture(const CTexture&, CBox*, float a, int round = 0, bool discardActive = false, bool allowCustomUV = false);
      |                                                          ^~~~~
src/main.cpp:110:50: error: ‘struct SMonitorRenderData’ has no member named ‘primaryFB’
  110 |     g_pHyprOpenGL->m_RenderData.pCurrentMonData->primaryFB.bind();
      |                                                  ^~~~~~~~~
make: *** [Makefile:75: obj/main.o] Error 1

Background per window

I think it would be awesome to be able to set an image on a per window basis using an external command so you could do things like set a music players background to the album cover on song change.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.