nixos-configs/modules/desktop/environment/home/hyprgrass.nix
matt1432 1946334e50 chore: update sources
Flake Inputs:
    • Updated input 'gpu-screen-recorder-src':
        'git+https://repo.dec05eba.com/gpu-screen-recorder' (2025-03-14) rev: 190c775a08ca092ac0145ce3483a421bfdc940c6
      → 'git+https://repo.dec05eba.com/gpu-screen-recorder' (2025-03-15) rev: 77b60a03b2785fa8ce461069f2ba2f241c2a1557

    • Updated input 'hyprgrass':
        'github:horriblename/hyprgrass' (2025-03-14) rev: 94ebb595b646c9788b9d39928648deab24ece9d0
      → 'github:horriblename/hyprgrass' (2025-03-15) rev: 5453be107e8c7b88f6274122d064bf602852745f

    • Updated input 'hyprland':
        'github:hyprwm/Hyprland' (2025-03-15) rev: e59680481d74fdfcc432bb9640ba2c979022c4c2
      → 'github:hyprwm/Hyprland' (2025-03-15) rev: bf5e4bf11662ebedcae44cd846ba5e755d7a6ba1

    • Updated input 'jovian':
        'github:Jovian-Experiments/Jovian-NixOS' (2025-03-14) rev: 534188d0b0cbddf3f9df3f20cfbc424efb46b36c
      → 'github:Jovian-Experiments/Jovian-NixOS' (2025-03-15) rev: ecaf8b6aa7d28cb7b87da334310fbe1ba31f8d64

    • Updated input 'material-symbols-src':
        'github:beecho01/material-symbols' (2025-03-14) rev: 376709da5aa69163ffb02deb13e9e7fac93ae53f
      → 'github:beecho01/material-symbols' (2025-03-15) rev: 5c209b25151271a01ab73d02bda0ed4709c681eb

    • Updated input 'nix-develop-nvim-src':
        'github:matt1432/nix-develop.nvim' (2025-01-08) rev: b0b9487c083bbc4274e97d25438419a35a67fb77
      → 'github:matt1432/nix-develop.nvim' (2025-03-15) rev: 66ab22c7618e3b0d548ffd3d23b52b9d60a40160

    • Updated input 'nix-gaming':
        'github:fufexan/nix-gaming' (2025-03-14) rev: b2a32ef80ad0cc7f3dee928771791625ff9494c1
      → 'github:fufexan/nix-gaming' (2025-03-15) rev: 0894bfe2c7f48091c1f5100f39bdfa0e19d08ab4

    • Updated input 'nixcord':
        'github:kaylorben/nixcord' (2025-03-13) rev: 91abbf5736459beeacb1c3163a2236241cfc6c71
      → 'github:kaylorben/nixcord' (2025-03-15) rev: c1a2a14393dba951994442199b9adfe14bb78a99

    • Updated input 'nixpkgs-wayland':
        'github:nix-community/nixpkgs-wayland' (2025-03-15) rev: ff6a5e6d2e8ae7ffff051ea35966ae2d225f397e
      → 'github:nix-community/nixpkgs-wayland' (2025-03-15) rev: 538fb64a8a28e258ad1758a9691cfa5a2c8d7a75

    • Updated input 'tuya-local-src':
        'github:make-all/tuya-local' (2025-03-09) rev: 684b181888a46fd9ec9927c9a02522259eb98c56
      → 'github:make-all/tuya-local' (2025-03-15) rev: 66c9f8b052bf1ff0140b28bb2682ae9804efd769

nix-update executions:
    homepage: 1.0.2 -> 1.0.3
2025-03-15 15:13:15 -04:00

76 lines
2.1 KiB
Nix

self: {
lib,
osConfig,
pkgs,
...
}: let
inherit (self.lib.hypr) mkBind;
inherit (lib) mkIf;
cfg = osConfig.roles.desktop;
in {
config = mkIf (cfg.enable && cfg.isTouchscreen) {
wayland.windowManager.hyprland = {
plugins = [pkgs.hyprlandPlugins.hyprgrass];
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;
emulate_touchpad_swipe = true;
# 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;
# in pixels, the distance from the edge that is considered an edge
edge_margin = 10;
# 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
experimental.send_cancel = 0;
hyprgrass-bind = map mkBind [
{
key = "edge:u:d";
command = "ags request 'open win-applauncher'";
}
];
hyprgrass-bindm = map mkBind [
{
key = "longpress:2";
dispatcher = "movewindow";
}
];
};
gestures = {
workspace_swipe = true;
workspace_swipe_fingers = 3;
workspace_swipe_touch = false;
workspace_swipe_cancel_ratio = 0.15;
};
};
};
};
# For accurate stack trace
_file = ./hyprgrass.nix;
}