From 4a840c8faef639d2c918722ef9a0432180ff1b41 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Wed, 7 Aug 2024 08:17:21 -0700 Subject: [PATCH] feat: add some laptop configuration for hyprland --- .../youwen/linux/hyprland/laptop/default.nix | 19 ++++++++++++++++++- .../linux/hyprland/laptop/laptop-only.nix | 1 - 2 files changed, 18 insertions(+), 2 deletions(-) delete mode 100644 users/youwen/linux/hyprland/laptop/laptop-only.nix diff --git a/users/youwen/linux/hyprland/laptop/default.nix b/users/youwen/linux/hyprland/laptop/default.nix index 9f7a1da..ca15dae 100644 --- a/users/youwen/linux/hyprland/laptop/default.nix +++ b/users/youwen/linux/hyprland/laptop/default.nix @@ -1 +1,18 @@ -{ imports = [ ../common.nix ./laptop-only.nix ]; } +{ lib, ... }: +{ + imports = [ ../common.nix ]; + wayland.windowManager.hyprland.settings.input.touchpad = { + natural_scroll = true; + disable_while_typing = true; + clickfinger_behavior = true; + tap-to-click = false; + scroll_factor = 0.5; + }; + wayland.windowManager.hyprland.settings.general.sensitivity = lib.mkForce 1.0; + wayland.windowManager.hyprland.settings.env = [ + "HYPRCURSOR_THEME,Bibata-Modern-Ice" + "HYPRCURSOR_SIZE,24" + "XCURSOR_THEME,Bibata-Modern-Ice" + "XCURSOR_SIZE,24" + ]; +} diff --git a/users/youwen/linux/hyprland/laptop/laptop-only.nix b/users/youwen/linux/hyprland/laptop/laptop-only.nix deleted file mode 100644 index ffcd441..0000000 --- a/users/youwen/linux/hyprland/laptop/laptop-only.nix +++ /dev/null @@ -1 +0,0 @@ -{ }