From 91724471b485f804bbed64182556b06c5aceed9b Mon Sep 17 00:00:00 2001 From: matt1432 Date: Wed, 30 Oct 2024 20:32:05 -0400 Subject: [PATCH] feat(hyprgrass): add new settings --- .../desktop/environment/home/hyprgrass.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/nixosModules/desktop/environment/home/hyprgrass.nix b/nixosModules/desktop/environment/home/hyprgrass.nix index 73588cc9..c52df4cd 100644 --- a/nixosModules/desktop/environment/home/hyprgrass.nix +++ b/nixosModules/desktop/environment/home/hyprgrass.nix @@ -22,6 +22,25 @@ in { # 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; + + # resize windows by long-pressing on window borders and gaps. + # If general:resize_on_border is enabled, general:extend_border_grab_area is used for floating + # windows + resize_on_border_long_press = true; + + hyprgrass-bindm = [", longpress:2, movewindow"]; + + # in pixels, the distance from the edge that is considered an edge + edge_margin = 10; + experimental = { # send proper cancel events to windows instead of hacky touch_up events, # NOT recommended as it crashed a few times, once it's stabilized I'll make it the default