Code Monkey home page Code Monkey logo

Comments (17)

VortexCoyote avatar VortexCoyote commented on June 11, 2024 1

so several things to try here;

  1. im not seeing you source 02-hyprland-plugins.conf in the main config file, which is probably necessary

  2. i dont know if this is the case, but i think the plugin needs to be loaded before you configure it (as it declares config variables and such)

  3. it might be worth trying to just do it bare bones in the main config file, since i dont know how sourcing reacts with the plugin system

from hyprfocus.

vaxerski avatar vaxerski commented on June 11, 2024 1

I made #3

from hyprfocus.

VortexCoyote avatar VortexCoyote commented on June 11, 2024 1

merged, keeping issue open until Zeioth reports back

from hyprfocus.

Zeioth avatar Zeioth commented on June 11, 2024

I managed to compile it yesterday. wlrooots was necessary (instead of wlroots-git).

Failed to load with

hyprctl plugin load ./hyprfocus.so
error in loading plugin

Today is failing to compile with a different error:

borderDeco.hpp:5:10: fatal error: hyprland/src/render/decorations/IHyprWindowDecoration.hpp: No such file or directory

I think I'm gonna wait until it stabilizes a bit.

from hyprfocus.

VortexCoyote avatar VortexCoyote commented on June 11, 2024

im unable to compile it as well, and is a bit confused as to why. the hyprland source includes wlroots as a git submodule, but some files seems to be missing from wlroots. i'll look more into it

from hyprfocus.

VortexCoyote avatar VortexCoyote commented on June 11, 2024

i got it. turns out i forgot how to compile plugins. here's the step by step instructions based the official wiki:

1) clone hyprfocus and cd into it

git clone https://github.com/VortexCoyote/hyprfocus && cd hyprfocus

2) clone hyprland and cd into it

git clone --recursive https://github.com/hyprwm/Hyprland && cd Hyprland

3) you need to checkout the correct release tag to match with your version of hyprland. in my case, i got the latest one so.

git checkout tags/v0.24.1

4) prepare the hyprland source for plugin compilation

make pluginenv

5) cd back and make

cd .. && HYPRLAND_HEADERS="Hyprland/" make

6) profit

hyprctl plugin load <.so path>

let me know if these steps works, i might add them to the readme file

from hyprfocus.

Zeioth avatar Zeioth commented on June 11, 2024

It compiles correctly thank you!! but

hyprctl plugin load hyprfocus.so

fails with "error in loading.

hyprctl version
Hyprland, built from branch main at commit f23455e592bca14e0abd9249de467cc71cd2850e dirty (makefile: use -f in copies to avoid errors on running hl).
Tag: v0.24.1-112-gf23455e5

flags: (if any)

from hyprfocus.

VortexCoyote avatar VortexCoyote commented on June 11, 2024

could you try using the full path to the .so file?

from hyprfocus.

Zeioth avatar Zeioth commented on June 11, 2024

Using the absolute path seems works ok!!

hyprctl plugin load /home/zeioth/.local/share/hyprfocus/hyprfocus.so     
ok

But the plugin does nothing. If I try to enable it on hyprland config like

plugin:hyprfocus {
    enabled = yes
}

Hyprlad complains there is no such field as plugin:hyprfocus

from hyprfocus.

Zeioth avatar Zeioth commented on June 11, 2024

The specific error hyprland displays is

Error setting <true> for field <master:gestures:plugin:hyprfocus:enabled>:No such field.

from hyprfocus.

VortexCoyote avatar VortexCoyote commented on June 11, 2024

could you show me your config file/s? the "plugin:plugin:hyprfocus" looks weird to me

from hyprfocus.

Zeioth avatar Zeioth commented on June 11, 2024

yes you have them online here: https://github.com/Zeioth/zeioth-hyprland-config/blob/main/config.d/03-hyprland-plugins

EDIT: That was a typo sorry. But same error.
screenshot_2023-04-28_15-20-06_616997847

from hyprfocus.

Zeioth avatar Zeioth commented on June 11, 2024

It seems to be failing to compile again. I've done:

  • Now git checkout tags/v0.25.0 is used (hypaland-git)
  • make pluginenv → now requires sudo permissions

Output:

 "Hyprland//subprojects/wlroots/include" -I "Hyprland//subprojects/wlroots/build/include" -std=c++23
In file included from Hyprland/src/includes.hpp:53,
                 from Hyprland/src/defines.hpp:1,
                 from Hyprland/src/Window.hpp:3,
                 from main.cpp:7:
Hyprland//subprojects/wlroots/include/wlr/types/wlr_layer_shell_v1.h:16:10: fatal error: wlr-layer-shell-unstable-v1-protocol.h: No such file or directory
   16 | #include "wlr-layer-shell-unstable-v1-protocol.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:6: all] Error 1

But your latest comment made sense to me. I'm gonna re-test as soon as I can compile again. Testing is difficult with so many quick changes, but that's a good thing in the long term most likely 😄

Edit: Config updated to exec the plugin before trying to apply settings.

from hyprfocus.

vaxerski avatar vaxerski commented on June 11, 2024

plugin needs to be updated to work with 0.25.0 onwards.

from hyprfocus.

Zeioth avatar Zeioth commented on June 11, 2024

It compiles and loads correctly again on v0.25.0

But still fails to detect my settings → loaded here
screenshot_2023-05-24_00-12-10_419207057

from hyprfocus.

vaxerski avatar vaxerski commented on June 11, 2024

obviously because you are defining them in master:gestures?

from hyprfocus.

vaxerski avatar vaxerski commented on June 11, 2024

your config is full of invalid syntax occurrences:

image

image

from hyprfocus.

Related Issues (17)

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.