feat(hypr): setup hyprgrass again
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
638957dbb5
commit
b37246474c
6 changed files with 75 additions and 7 deletions
21
flake.lock
21
flake.lock
|
@ -876,6 +876,26 @@
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"hyprgrass": {
|
||||||
|
"inputs": {
|
||||||
|
"hyprland": [
|
||||||
|
"hyprland"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1718401180,
|
||||||
|
"narHash": "sha256-DfM2BqnFW48NlHkBfC7ErHgK7WHlOgiiE+aFetN/yJ4=",
|
||||||
|
"owner": "horriblename",
|
||||||
|
"repo": "hyprgrass",
|
||||||
|
"rev": "736119f828eecaed2deaae1d6ff1f50d6dabaaba",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "horriblename",
|
||||||
|
"repo": "hyprgrass",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"hyprland": {
|
"hyprland": {
|
||||||
"inputs": {
|
"inputs": {
|
||||||
"hyprcursor": "hyprcursor",
|
"hyprcursor": "hyprcursor",
|
||||||
|
@ -1991,6 +2011,7 @@
|
||||||
"headscale": "headscale",
|
"headscale": "headscale",
|
||||||
"home-manager": "home-manager",
|
"home-manager": "home-manager",
|
||||||
"hypr-official-plugins": "hypr-official-plugins",
|
"hypr-official-plugins": "hypr-official-plugins",
|
||||||
|
"hyprgrass": "hyprgrass",
|
||||||
"hyprland": "hyprland",
|
"hyprland": "hyprland",
|
||||||
"jellyfin-flake": "jellyfin-flake",
|
"jellyfin-flake": "jellyfin-flake",
|
||||||
"jellyfin-ultrachromic-src": "jellyfin-ultrachromic-src",
|
"jellyfin-ultrachromic-src": "jellyfin-ultrachromic-src",
|
||||||
|
|
|
@ -116,6 +116,12 @@
|
||||||
repo = "hyprland-plugins";
|
repo = "hyprland-plugins";
|
||||||
type = "github";
|
type = "github";
|
||||||
};
|
};
|
||||||
|
hyprgrass = {
|
||||||
|
inputs.hyprland.follows = "hyprland";
|
||||||
|
owner = "horriblename";
|
||||||
|
repo = "hyprgrass";
|
||||||
|
type = "github";
|
||||||
|
};
|
||||||
hyprland = {
|
hyprland = {
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
submodules = true;
|
submodules = true;
|
||||||
|
|
|
@ -143,6 +143,11 @@ let
|
||||||
repo = "Hyprspace";
|
repo = "Hyprspace";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
hyprgrass = mkHyprDep {
|
||||||
|
owner = "horriblename";
|
||||||
|
repo = "hyprgrass";
|
||||||
|
};
|
||||||
|
|
||||||
grim-hyprland = mkDep {
|
grim-hyprland = mkDep {
|
||||||
owner = "eriedaberrie";
|
owner = "eriedaberrie";
|
||||||
repo = "grim-hyprland";
|
repo = "grim-hyprland";
|
||||||
|
|
|
@ -65,6 +65,7 @@ in {
|
||||||
# HOME-MANAGER CONFIG
|
# HOME-MANAGER CONFIG
|
||||||
home-manager.users.${mainUser} = {
|
home-manager.users.${mainUser} = {
|
||||||
imports = [
|
imports = [
|
||||||
|
./hyprgrass.nix
|
||||||
./hyprexpo.nix
|
./hyprexpo.nix
|
||||||
# ./Hyprspace.nix
|
# ./Hyprspace.nix
|
||||||
./inputs.nix
|
./inputs.nix
|
||||||
|
|
42
modules/hyprland/hyprgrass.nix
Normal file
42
modules/hyprland/hyprgrass.nix
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
{
|
||||||
|
osConfig,
|
||||||
|
hyprgrass,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}: let
|
||||||
|
inherit (lib) optionalAttrs;
|
||||||
|
|
||||||
|
isTouchscreen = osConfig.hardware.sensor.iio.enable;
|
||||||
|
in
|
||||||
|
optionalAttrs isTouchscreen {
|
||||||
|
wayland.windowManager.hyprland = {
|
||||||
|
plugins = [hyprgrass.packages.${pkgs.system}.default];
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
plugin = {
|
||||||
|
touch_gestures = {
|
||||||
|
# The default sensitivity is probably too low on tablet screens,
|
||||||
|
# I recommend turning it up to 4.0
|
||||||
|
sensitivity = 4.0;
|
||||||
|
|
||||||
|
# must be >= 3
|
||||||
|
workspace_swipe_fingers = 3;
|
||||||
|
|
||||||
|
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
|
||||||
|
send_cancel = 0;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
gestures = {
|
||||||
|
workspace_swipe = true;
|
||||||
|
workspace_swipe_fingers = 3;
|
||||||
|
workspace_swipe_touch = false;
|
||||||
|
workspace_swipe_cancel_ratio = 0.15;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -44,13 +44,6 @@ in {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
gestures = {
|
|
||||||
workspace_swipe = true;
|
|
||||||
workspace_swipe_fingers = 3;
|
|
||||||
workspace_swipe_touch = true;
|
|
||||||
workspace_swipe_cancel_ratio = 0.15;
|
|
||||||
};
|
|
||||||
|
|
||||||
bind = [
|
bind = [
|
||||||
",XF86AudioPlay, exec, playerctl play-pause"
|
",XF86AudioPlay, exec, playerctl play-pause"
|
||||||
",XF86AudioStop, exec, playerctl stop"
|
",XF86AudioStop, exec, playerctl stop"
|
||||||
|
|
Loading…
Reference in a new issue