From 5ddf06cad0bab9d2c4f2997c32d3ee340993bb78 Mon Sep 17 00:00:00 2001 From: Kopatz <7265381+Kropatz@users.noreply.github.com> Date: Thu, 9 Oct 2025 20:58:11 +0200 Subject: [PATCH] try out niri and up repeat delay in hyprland --- home-manager/hyprland/hyprland-settings.nix | 1 + modules/graphical/default.nix | 1 + modules/graphical/niri.nix | 17 +++++++++++++++++ systems/pc/configuration.nix | 1 + 4 files changed, 20 insertions(+) create mode 100644 modules/graphical/niri.nix diff --git a/home-manager/hyprland/hyprland-settings.nix b/home-manager/hyprland/hyprland-settings.nix index 34b44b3..5cf4951 100644 --- a/home-manager/hyprland/hyprland-settings.nix +++ b/home-manager/hyprland/hyprland-settings.nix @@ -95,6 +95,7 @@ in accel_profile = "flat"; sensitivity = 0; + repeat_delay = 250; }; #cursor = { no_hardware_cursors = true; }; diff --git a/modules/graphical/default.nix b/modules/graphical/default.nix index 6a36132..fdf5559 100644 --- a/modules/graphical/default.nix +++ b/modules/graphical/default.nix @@ -28,5 +28,6 @@ ./basics.nix ./sway.nix ./gpu-screen-recorder-ui.nix + ./niri.nix ]; } diff --git a/modules/graphical/niri.nix b/modules/graphical/niri.nix new file mode 100644 index 0000000..1b9a14f --- /dev/null +++ b/modules/graphical/niri.nix @@ -0,0 +1,17 @@ +{ config, pkgs, lib, ... }: +let cfg = config.custom.graphical.niri; +in { + + options = { + custom.graphical.niri.enable = lib.mkOption { + type = lib.types.bool; + default = false; + description = "Enable niri"; + }; + }; + + config = lib.mkIf cfg.enable { + programs.niri = { enable = true; }; + environment.systemPackages = with pkgs; [ xwayland-satellite ]; + }; +} diff --git a/systems/pc/configuration.nix b/systems/pc/configuration.nix index 092208a..a6e988e 100644 --- a/systems/pc/configuration.nix +++ b/systems/pc/configuration.nix @@ -82,6 +82,7 @@ noise-supression.enable = true; obs.enable = true; gpu-screen-recorder-ui.enable = true; + niri.enable = true; #openrgb.enable = true; sddm.enable = true; #plasma.enable = true;