Compare commits

...

2 commits

Author SHA1 Message Date
Leonardo Eugênio 0a4cabca4b monolith: don't use controller touchpads as mice 2024-09-11 20:26:08 -03:00
Leonardo Eugênio b2bdcb1724 helix: minor updates 2024-09-06 00:10:22 -03:00
2 changed files with 8 additions and 4 deletions

View file

@ -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"

View file

@ -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";