From 87f5b4909eed4e13b17251bb1eb6c672d9043b92 Mon Sep 17 00:00:00 2001 From: Emmet Date: Sat, 1 Jun 2024 22:00:00 -0500 Subject: [PATCH] Trying out hyprgrass on work computer --- flake.lock | 22 ++++++++++++++++++++++ flake.nix | 2 ++ user/wm/hyprland/hyprland.nix | 13 +++++++++++++ 3 files changed, 37 insertions(+) diff --git a/flake.lock b/flake.lock index 60af365..0a41721 100644 --- a/flake.lock +++ b/flake.lock @@ -554,6 +554,27 @@ "type": "github" } }, + "hyprgrass": { + "inputs": { + "hyprland": [ + "hyprland" + ] + }, + "locked": { + "lastModified": 1715969899, + "narHash": "sha256-NDURZAbLIihUHNt5a8PGrgmzFkcBsG5e4MgwJE/InbM=", + "owner": "horriblename", + "repo": "hyprgrass", + "rev": "6d8dbbcfb14ebdb2a2a2551b7d495d01d8ef6917", + "type": "github" + }, + "original": { + "owner": "horriblename", + "repo": "hyprgrass", + "rev": "6d8dbbcfb14ebdb2a2a2551b7d495d01d8ef6917", + "type": "github" + } + }, "hyprland": { "inputs": { "hyprcursor": "hyprcursor", @@ -1087,6 +1108,7 @@ "home-manager-stable": "home-manager-stable", "home-manager-unstable": "home-manager-unstable", "hycov": "hycov", + "hyprgrass": "hyprgrass", "hyprland": "hyprland", "hyprland-plugins": "hyprland-plugins", "kdenlive-pin-nixpkgs": "kdenlive-pin-nixpkgs", diff --git a/flake.nix b/flake.nix index ba41469..ee4e18e 100644 --- a/flake.nix +++ b/flake.nix @@ -188,6 +188,8 @@ hyprland-plugins.inputs.hyprland.follows = "hyprland"; hycov.url = "github:DreamMaoMao/hycov/115cba558d439cc25d62ce38b7c62cde83f50ef5"; hycov.inputs.hyprland.follows = "hyprland"; + hyprgrass.url = "github:horriblename/hyprgrass/6d8dbbcfb14ebdb2a2a2551b7d495d01d8ef6917"; + hyprgrass.inputs.hyprland.follows = "hyprland"; nix-doom-emacs.url = "github:nix-community/nix-doom-emacs"; nix-doom-emacs.inputs.nixpkgs.follows = "emacs-pin-nixpkgs"; diff --git a/user/wm/hyprland/hyprland.nix b/user/wm/hyprland/hyprland.nix index 5b39a82..89335ea 100644 --- a/user/wm/hyprland/hyprland.nix +++ b/user/wm/hyprland/hyprland.nix @@ -29,6 +29,7 @@ in plugins = [ inputs.hyprland-plugins.packages.${pkgs.system}.hyprtrails inputs.hycov.packages.${pkgs.system}.hycov + inputs.hyprgrass.packages.${pkgs.system}.default ]; settings = { }; extraConfig = '' @@ -105,6 +106,18 @@ in show_special = 0 # show windwos in special workspace in overview. } + touch_gestures { + sensitivity = 4.0 + long_press_delay = 260 + hyprgrass-bind = , edge:r:l, exec, hyprnome + hyprgrass-bind = , edge:l:r, exec, hyprnome --previous + hyprgrass-bind = , swipe:3:d, exec, nwg-drawer + hyprgrass-bind = , swipe:3:u, hycov:toggleoverview + hyprgrass-bind = , swipe:3:r, exec, hyprnome + hyprgrass-bind = , swipe:3:l, exec, hyprnome --previous + hyprgrass-bindm = , longpress:2, movewindow + hyprgrass-bindm = , longpress:3, resizewindow + } } bind=SUPER,SPACE,fullscreen,1