From b2bdcb17248be0b66e8bb764c434d31ec0cf5903 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Fri, 6 Sep 2024 00:10:22 -0300 Subject: [PATCH 1/2] helix: minor updates --- user/helix.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/user/helix.nix b/user/helix.nix index b711055..4ef81cb 100644 --- a/user/helix.nix +++ b/user/helix.nix @@ -56,6 +56,8 @@ in # goto mode g.n = "goto_line_start"; g.o = "goto_line_end"; + # Formatting + "space".m = ":format"; }; keys.select = { # basic movement @@ -68,6 +70,7 @@ in L = "extend_search_prev"; # edits s = "insert_mode"; + S = "insert_at_line_start"; # open newline h = "open_below"; H = "open_above"; @@ -87,7 +90,7 @@ in { name = "nix"; auto-format = true; - formatter.command = "nixpkgs-fmt"; + formatter.command = "nixfmt"; } { name = "rust"; From 0a4cabca4bcba542060b6e4256b5a6d10b8355f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Wed, 11 Sep 2024 20:26:08 -0300 Subject: [PATCH 2/2] monolith: don't use controller touchpads as mice --- hosts/monolith/default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hosts/monolith/default.nix b/hosts/monolith/default.nix index e496755..98abf0d 100644 --- a/hosts/monolith/default.nix +++ b/hosts/monolith/default.nix @@ -146,9 +146,10 @@ in virtualisation.virtualbox.host.enable = true; services.udev.extraRules = '' - # Fix broken suspend with Logitech USB dongle - # `lsusb | grep Logitech` will return "vendor:product" - ACTION=="add" SUBSYSTEM=="usb" ATTR{idVendor}=="046d" ATTR{idProduct}=="c547" ATTR{power/wakeup}="disabled" + # Disable using controller touchpad as mouse + # https://wiki.archlinux.org/title/Gamepad#libinput + ATTRS{name}=="Wireless Controller Touchpad", ENV{LIBINPUT_IGNORE_DEVICE}="1" + # Force all disks to use mq-deadline scheduler # For some reason "noop" is used by default which is kinda bad when io is saturated ACTION=="add|change", KERNEL=="sd[a-z]*[0-9]*|mmcblk[0-9]*p[0-9]*|nvme[0-9]*n[0-9]*p[0-9]*", ATTR{../queue/scheduler}="mq-deadline"