From b4e7116937acad01a5c7dc16ae6b0caa152186d8 Mon Sep 17 00:00:00 2001 From: Nickiel12 Date: Sun, 17 Dec 2023 15:37:09 -0800 Subject: [PATCH] added laptop specific configuration --- modules/hyprland/default.nix | 8 +++++++- modules/hyprland/monitors.nix | 10 +++++++--- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/modules/hyprland/default.nix b/modules/hyprland/default.nix index 2bdca9f..d4671b1 100644 --- a/modules/hyprland/default.nix +++ b/modules/hyprland/default.nix @@ -55,7 +55,13 @@ in "eww open full_screen_bar" ]; - input = { + input = if (hostname == "NicksNixLaptop") then + { + kb_layout = "us"; + sensitivity = 0.0; + accel_profile = "linear"; + touchpad.disable_while_typing = true; + } else { kb_layout = "us"; sensitivity = -0.85; accel_profile = "adaptive"; diff --git a/modules/hyprland/monitors.nix b/modules/hyprland/monitors.nix index 5bc0041..6ca56b0 100644 --- a/modules/hyprland/monitors.nix +++ b/modules/hyprland/monitors.nix @@ -13,11 +13,15 @@ let env = WLR_NO_HARDWARE_CURSORS,1 env = SIGNAL_USE_WAYLAND,1 '' - else if (hostname == "NicksNixLaptop") then '' + else if (hostname == "NicksNixLaptop") then '' + monitor=eDP-1, 1920x1080@60, 0x0, 1 - '' else '' + env = XDG_SESSION_TYPE,wayland + env = SIGNAL_USE_WAYLAND,1 + env = WLR_NO_HARDWARE_CURSORS,1 + '' else '' - ''; + ''; in monitor_config