horriblename / hyprgrass

hyprland plugin for touch screen gestures
BSD 3-Clause "New" or "Revised" License
303 stars 13 forks source link

Unable to get any functionality out of hyprgrass 0.7, hyprland 0.41.1 #141

Closed daniel-hernandez-sony closed 5 months ago

daniel-hernandez-sony commented 5 months ago

Hello again (and sorry to bother you), I am the author of #140. I have now updated to Hyprland 0.41.1 and Hyprgrass (<3) 0.7.0. I am able to compile Hyprgrass, but I am unable to get it to work. By that I mean that none of the bindings that I set seem to be active. I am at a loss. The built-in workspace_swipe gesture does work, so it's not like my touchpad is broken.

I am opening this issue to ask:

Setup

OS: Nixos

relevant flake.nix inputs:

hyprland = {
  type = "git";
  # This revision is a few commits after version 0.41.1
  url = "https://github.com/hyprwm/Hyprland?rev=e0e3c4c6ae15af88ac5fd5ab959adfe45a2e1dca";
  submodules = true;
  inputs.nixpkgs.follows = "nixpkgs";
};
hyprgrass = {
   url = "github:horriblename/hyprgrass?ref=v0.7.0";
   inputs.hyprland.follows = "hyprland";
};

The file where I enable hyprland.

wayland.windowManager.hyprland = {
  enable = true;
  extraConfig = builtins.readFile ./hyprland.conf;
  plugins = [
    pkgs.hy3
    inputs.hycov.packages.x86_64-linux.hycov
    inputs.hyprgrass.packages.x86_64-linux.default
  ];
  settings = {
    exec-once = [
      "${pkgs.dbus}/bin/dbus-update-activation-environment --all"
    ];
  };
  systemd = {
    enable = true;
    variables = ["--all"];
    extraCommands = [
      "systemctl --user stop graphical-session.target"
      "systemctl --user start hyprland-session.target"
    ];
  };
  xwayland.enable = true;
};

Finally, here's my hyprgrass configuration:

plugin:touch_gestures {
  # The default sensitivity is probably too low on tablet screens,
  # I recommend turning it up to 4.0
  sensitivity = 1.0
  # must be >= 3
  workspace_swipe_fingers = 3

  # switching workspaces by swiping from an edge, this is separate from workspace_swipe_fingers
  # and can be used at the same time
  # possible values: l, r, u, or d
  # to disable it set it to anything else
  workspace_swipe_edge = d
  # in milliseconds
  long_press_delay = 400
  # swipe left from right edge
  hyprgrass-bind = , edge:r:l, workspace, +1
  # swipe up from bottom edge
  hyprgrass-bind = , edge:d:u, exec, firefox
  # swipe down from left edge
  hyprgrass-bind = , edge:l:d, exec, pactl set-sink-volume @DEFAULT_SINK@ -5%
  # swipe down from left edge
  hyprgrass-bind = , edge:r:u, exec, pactl set-sink-volume @DEFAULT_SINK@ +5%
  # swipe down with 4 fingers
  # NOTE: swipe events only trigger for finger count of >= 3
  hyprgrass-bind = , swipe:3:u, fullscreen, 1PR ready
  # NOTE: swipe events only trigger for finger count of >= 3
  hyprgrass-bind = , swipe:4:d, killactive
  # swipe diagonally left and down with 3 fingers
  # l (or r) must come before d and u
  hyprgrass-bind = , swipe:3:ld, exec, foot
  # tap with 3 fingers
  # NOTE: tap events only trigger for finger count of >= 3
  hyprgrass-bind = , tap:3, exec, pavucontrol
  # longpress can trigger mouse binds:
  hyprgrass-bindm = , longpress:2, movewindow
  hyprgrass-bindm = , longpress:3, resizewindow
}
horriblename commented 5 months ago

hyprgrass is for touch screen mate

daniel-hernandez-sony commented 5 months ago

Oh, my, god...... This completely went over my head..... I am sorry for wasting your time..... Thank you for the plugin regardless