thrombe / hyprkool

Hyprland plugin to replicate the feel of kde activities and desktop grid layout
MIT License
47 stars 3 forks source link

Can't load the plugin using flakes and stand alone home manager. #12

Open Nero-Study-Hat opened 1 month ago

Nero-Study-Hat commented 1 month ago

My setup:

Issue:

failed to load the following plugins: /nix/store/{hash-path-details}/libhyprkool.so

What I found:

I have been trying to set up a minimal virtual machine image generator for you to test this issue with but this has proven harder than I expected so that is still in progress. I am not really able to solve this on my own as I am very new to hyprland and don't know C++ so I am not sure what is going on in the source code.

I really think the idea of this project is cool as one of the first things I looked into with hyprland was how to get the virtual desktops and activities experience of kde as those were amazing.

thrombe commented 1 month ago

i didn't realize the plugin building broke with another minor hyprland version 😓. i pushed a new release for Hyprland v0.41.2.

other than that, you are installing the wrong package for hyprkool-plugin here. you have to install the hyprkool-plugin package as mentioned in the readme.

another thing, you should add something like the following in your flake inputs if the plugin fails to build.

hyprkool = {
  url = "github:thrombe/hyprkool/0.7.1";
  inputs.nixpkgs.follows = "nixpkgs";
  inputs.nixpkgs-unstable.follows = "nixpkgs";
  inputs.hyprland.follows = "hyprland";
};

i.e. use the same nixpkgs as your hyprland input and pin hyprkool version that supports hyprland v0.41.2.

I looked into with hyprland was how to get the virtual desktops and activities experience of kde as those were amazing.

Same. I tried my best to replicate my KDE workspace setup in hyprland. I hope you have a good time using hyprkool :smile:.

Nero-Study-Hat commented 3 weeks ago

Sorry for taking so long to get back to you on this and thanks for taking some time to help. I tried the fixes you suggested (held my face in hands for a moment when I saw the hyprkool-plugin one) and the shared object file exists as it should now but the plugin still did not work.

When I tried with nixpkgs-unstable (which I am using for everything almost) I got the below error. image The commit with this code is here: commit-link

Using ls -la here is what I got on the shared object file. -r-xr-xr-x 3 root root 671176 Dec 31 1969 libhyprkool.so

When I tried with nixpkgs-stable for hyprland and plugin inputs for it I got the same error and when I rebooted and went through the ssdm login I found I could not get into hyprland. The commit with this code is here: commit-link

thrombe commented 3 weeks ago

I have been trying to set up a minimal virtual machine image generator for you to test this issue with but this has proven harder than I expected so that is still in progress.

i ended up doing this as well. thanks for the idea. newer versions of Hyprland refuse to launch in the version of Hyprland i am using, so this VM is pretty helpful. The vm config is here if you are interested.

this "File could not be opened for reading" error is a bug. it will be fixed in the next hyprkool release. for now, just create a file in the location ~/.config/hypr/hyprkool.toml. plugin crashes when it can't find hyprkool's config file.

Nero-Study-Hat commented 3 weeks ago

Happy to help and that did it for me. The plug-in works now. I also handled the issue of the file possibly not existing here by creating a tiny shell script to check if the file exists and copy the one in my projects config directory if the file doesn't exist.

I am going to stick to using the custom activities setup I have gotten up and running by extending the virtual-desktops plugin with some personal programs for now because of my multi-monitor setup (each with abnormal aspect ratios) not really being supported by this project and my interest in the custom setup I have started. Still, I would be happy to help test this project if you could use any help.

Currently the overview highlights and mouse positioning is all bent out of shape for me based on my monitor setup I presume. I have an ultrawide and vertical monitor. Also when mouse switching is enabled and there is an empty toml file it gets the edge of my screen wrong and I lose a portion of my ultrawide monitor. Should I copy this stuff over to the active multi-monitor issue that is open?

Also definitely going to try using your vm config for inspiration later when I try my hand at that problem again so thanks.

thrombe commented 3 weeks ago

I am going to stick to using the custom activities setup I have gotten up and running ...

sure! i'm happy you gave hyprkool a try.

Should I copy this stuff over to the active multi-monitor issue that is open?

sure. that would help when i work on the issue. if you don't mind, can you phrase your explanation a little differently? i am having a little trouble understanding this version.

i'll leave the issue open for now. it should auto close when the commit for the fix lands in master branch.