levnikmyskin / hyprland-virtual-desktops

A plugin for the Hyprland compositor, implementing virtual-desktop functionality.
BSD 3-Clause "New" or "Revised" License
105 stars 9 forks source link

hyprpm installation #9

Closed LaptopDev closed 9 months ago

LaptopDev commented 9 months ago

I don't know how to use hyprpm or hyprload. I have only loaded split-monitor-workspaces with hyprctl in my .config before.

How do I use the now native plugin manager of hyprland, hyprpm, to load hyprland-virtual-dekstops plugin?

wlroots.x86_64                                       0.16.2-2.fc38                       @updates `

`laptop:~$ cd hyprland-virtual-desktops/
laptop:~/hyprland-virtual-desktops$ make virtual-desktops.so
g++ -O2 -shared -g -fPIC --no-gnu-unique -std=c++23 -Wall -Iinclude -DWLR_USE_UNSTABLE `pkg-config --cflags pixman-1 libdrm hyprland`   src/main.cpp src/utils.cpp src/VirtualDesk.cpp src/VirtualDeskManager.cpp -o virtual-desktops.so
In file included from /usr/local/include/hyprland/src/defines.hpp:1,
                 from /usr/local/include/hyprland/src/Compositor.hpp:7,
                 from src/main.cpp:1:
/usr/local/include/hyprland/src/includes.hpp:108:10: fatal error: wlr/util/transform.h: No such file or directory
  108 | #include <wlr/util/transform.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /usr/local/include/hyprland/src/debug/Log.hpp:7,
                 from include/utils.hpp:5,
                 from src/utils.cpp:1:
/usr/local/include/hyprland/src/includes.hpp:108:10: fatal error: wlr/util/transform.h: No such file or directory
  108 | #include <wlr/util/transform.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /usr/local/include/hyprland/src/defines.hpp:1,
                 from /usr/local/include/hyprland/src/helpers/Monitor.hpp:3,
                 from include/VirtualDesk.hpp:10,
                 from src/VirtualDesk.cpp:1:
/usr/local/include/hyprland/src/includes.hpp:108:10: fatal error: wlr/util/transform.h: No such file or directory
  108 | #include <wlr/util/transform.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /usr/local/include/hyprland/src/defines.hpp:1,
                 from /usr/local/include/hyprland/src/helpers/Monitor.hpp:3,
                 from include/VirtualDesk.hpp:10,
                 from include/VirtualDeskManager.hpp:6,
                 from src/VirtualDeskManager.cpp:1:
/usr/local/include/hyprland/src/includes.hpp:108:10: fatal error: wlr/util/transform.h: No such file or directory
  108 | #include <wlr/util/transform.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:17: virtual-desktops.so] Error 1

laptop:~/hyprland-virtual-desktops$ HYPRLAND_HEADERS=/home/user/Hyprland/ make all
g++ -O2 -shared -g -fPIC --no-gnu-unique -std=c++23 -Wall -Iinclude -DWLR_USE_UNSTABLE `pkg-config --cflags pixman-1 libdrm hyprland`   src/main.cpp src/utils.cpp src/VirtualDesk.cpp src/VirtualDeskManager.cpp -o virtual-desktops.so
In file included from /usr/local/include/hyprland/src/defines.hpp:1,
                 from /usr/local/include/hyprland/src/Compositor.hpp:7,
                 from src/main.cpp:1:
/usr/local/include/hyprland/src/includes.hpp:108:10: fatal error: wlr/util/transform.h: No such file or directory
  108 | #include <wlr/util/transform.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /usr/local/include/hyprland/src/debug/Log.hpp:7,
                 from include/utils.hpp:5,
                 from src/utils.cpp:1:
/usr/local/include/hyprland/src/includes.hpp:108:10: fatal error: wlr/util/transform.h: No such file or directory
  108 | #include <wlr/util/transform.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /usr/local/include/hyprland/src/defines.hpp:1,
                 from /usr/local/include/hyprland/src/helpers/Monitor.hpp:3,
                 from include/VirtualDesk.hpp:10,
                 from src/VirtualDesk.cpp:1:
/usr/local/include/hyprland/src/includes.hpp:108:10: fatal error: wlr/util/transform.h: No such file or directory
  108 | #include <wlr/util/transform.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from /usr/local/include/hyprland/src/defines.hpp:1,
                 from /usr/local/include/hyprland/src/helpers/Monitor.hpp:3,
                 from include/VirtualDesk.hpp:10,
                 from include/VirtualDeskManager.hpp:6,
                 from src/VirtualDeskManager.cpp:1:
/usr/local/include/hyprland/src/includes.hpp:108:10: fatal error: wlr/util/transform.h: No such file or directory
  108 | #include <wlr/util/transform.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:17: virtual-desktops.so] Error 1
levnikmyskin commented 9 months ago

Hey, you can find instructions at this link https://wiki.hyprland.org/Plugins/Using-Plugins/#installing--using-plugins

LaptopDev commented 9 months ago

(from docs:) Find a repository you want to install plugins from. As an example, we will use hyprland-plugins.

hyprpm add https://github.com/hyprwm/hyprland-plugins

once it finishes, you can list your installed plugins with

hyprpm list


Ah, I thought the documentation meant the plugins should come from some special repo with multiple hyprland plugins, instead of individual single plugin repos. hyprpm add https://github.com/levnikmyskin/hyprland-virtual-desktops indeed works.

Thank you