Comments (17)
so several things to try here;
-
im not seeing you source 02-hyprland-plugins.conf in the main config file, which is probably necessary
-
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)
-
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.
I made #3
from hyprfocus.
merged, keeping issue open until Zeioth reports back
from hyprfocus.
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.
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.
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.
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.
could you try using the full path to the .so file?
from hyprfocus.
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.
The specific error hyprland displays is
Error setting <true> for field <master:gestures:plugin:hyprfocus:enabled>:No such field.
from hyprfocus.
could you show me your config file/s? the "plugin:plugin:hyprfocus" looks weird to me
from hyprfocus.
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.
from hyprfocus.
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.
plugin needs to be updated to work with 0.25.0 onwards.
from hyprfocus.
It compiles and loads correctly again on v0.25.0
But still fails to detect my settings → loaded here
from hyprfocus.
obviously because you are defining them in master:gestures
?
from hyprfocus.
your config is full of invalid syntax occurrences:
from hyprfocus.
Related Issues (17)
- TODO: AUR package is needed HOT 1
- Only animate on keybinding
- Color flash HOT 2
- I guess this is not working HOT 2
- Opacity set permanently when using flash HOT 1
- Hey @VortexCoyote, i wanted to ask if i can disable animations on float windows? HOT 7
- support hyprpm HOT 1
- Build error HOT 50
- Nix package error; HOT 2
- Build Issues on Hyperland 0.37.1-1 HOT 5
- I can't build hyprfocus using hyprpm HOT 2
- Do not build with 0.39.1 HOT 5
- [Feature Request] Dim animation HOT 5
- Glow effect of focues window HOT 4
- Keyboard focus animation is always used HOT 3
- Some options loss!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hyprfocus.