Giter VIP home page Giter VIP logo

Comments (6)

Yusuf-Duran avatar Yusuf-Duran commented on July 3, 2024

I got the same error on arch Linux, so this shouldn't just be nix related

from hyprgrass.

horriblename avatar horriblename commented on July 3, 2024

someone give me confirmation on whether or not the latest commit works

from hyprgrass.

dominikrosser avatar dominikrosser commented on July 3, 2024

This is compiling now (which did not work yesterday, with the above error):

# flake.nix
...
inputs = {
      hyprland.url = "github:hyprwm/Hyprland";
      hyprgrass = {
        url = "github:horriblename/hyprgrass";
        inputs.hyprland.follows = "hyprland"; # IMPORTANT
      };
}
------
# hyprland.nix
{ config, inputs, pkgs, ... }:
{
  wayland.windowManager.hyprland = {
    ...
    plugins = [
       inputs.hyprgrass.packages.${pkgs.system}.default
    ];
    #package = inputs.hyprland.packages.${pkgs.system}.hyprland;
  };
}

Just dont know how to actually get it working as a plugin on nixos since I just switched operating system, but that is a user problem I guess.

Edit (just for giving some information):
The following work on my device: bind = , swipe:4:d, killactive; bind = , edge:r:l, workspace, +1
But the three finger workspace swipe crashes hyprland:

Process 73193 (.Hyprland-wrapp) of user 1000 dumped core.
Stack trace of thread 73193:
#0  0x00007fb788064291 _ZN14GestureManager20handleWorkspaceSwipeEj (libhyprgrass.so + 0x2b291)
#1  0x00007fb78806765b _ZN14GestureManager17handleDragGestureERK11DragGesture (libhyprgrass.so + 0x2e65b)

This could, however, just be some missing drivers on my device, or a version mismatch. xdg-desktop-portal-hyprland is running.

Plugin hyprgrass by horriblename:
Handle: 2d61e60
Version: 0.6
Description: Touchscreen gestures
Hyprland (flake.lock):
"locked": {
"lastModified": 1712288444,
"narHash": "sha256-UzfzS/4vGyeowWW9gYvAq3mj4MOzC2I7a9XRqsCKED4=",
"owner": "hyprwm",
"repo": "Hyprland",
"rev": "baad44b4ca28d62fb9d86ed1f83650b6695b501d",
"type": "github"

from hyprgrass.

horriblename avatar horriblename commented on July 3, 2024

This could, however, just be some missing drivers on my device, or a version mismatch. xdg-desktop-portal-hyprland is running.

nah its 99% my fault, the PR above only affects the workspace swipe after all

from hyprgrass.

technotechnoduck avatar technotechnoduck commented on July 3, 2024

As far as i have been able to read, the issue was caused is because now the function
g_pCompositor->m_pLastMonitor->activeWorkspace
used to return the workspace ID, but now returns the PHLWORKSPACE.

If in the original code the GetWorkspaceByID surrounding function is removed, it works just fine.

    const bool VERTANIMS = g_pCompositor->m_pLastMonitor->activeWorkspace
        ->m_vRenderOffset.getConfig()
        ->pValues->internalStyle == "slidevert" ||
        g_pCompositor->m_pLastMonitor->activeWorkspace
        ->m_vRenderOffset.getConfig()
        ->pValues->internalStyle.starts_with("slidevert");

Does the trick.

from hyprgrass.

horriblename avatar horriblename commented on July 3, 2024

thanks to @technotechnoduck this is fixed

from hyprgrass.

Related Issues (20)

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.