From f86f6410b26ec8a753b887146a4166d12cdffc25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Fri, 6 Mar 2026 11:39:16 +0100 Subject: [PATCH] hyprland: add QoL variables and magicman touchpad/gestures Co-Authored-By: Claude Opus 4.6 --- home/hosts/magicman/default.nix | 8 ++++++++ home/hyprland/default.nix | 9 ++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/home/hosts/magicman/default.nix b/home/hosts/magicman/default.nix index fbaa011..02350d1 100644 --- a/home/hosts/magicman/default.nix +++ b/home/hosts/magicman/default.nix @@ -41,6 +41,14 @@ tmux.enable = true; hyprland.enable = true; hyprland.monitors = [ "eDP-1,1920x1080@60,0x0,1" ]; + wayland.windowManager.hyprland.settings = { + input.touchpad = { + natural_scroll = false; + }; + gestures = { + workspace_swipe = true; + }; + }; hyprland.extraKeybinds = [ # Workspace keybinds "$mainMod,1,workspace,1" diff --git a/home/hyprland/default.nix b/home/hyprland/default.nix index bc0ea9d..3335e7e 100644 --- a/home/hyprland/default.nix +++ b/home/hyprland/default.nix @@ -182,7 +182,10 @@ in name = "wacom-one-by-wacom-m-pen"; }; - cursor = optionalAttrs cfg.cursorNoHardware { + cursor = { + hide_on_key_press = true; + } + // optionalAttrs cfg.cursorNoHardware { no_hardware_cursors = true; }; @@ -203,6 +206,7 @@ in gaps_out = 10; border_size = 2; layout = "dwindle"; + resize_on_border = true; }; animations = { @@ -232,6 +236,9 @@ in misc = { force_default_wallpaper = 0; disable_hyprland_logo = true; + disable_splash_rendering = true; + key_press_enables_dpms = true; + mouse_move_enables_dpms = true; }; ecosystem = {