mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
refactor dpi settings
This commit is contained in:
parent
b9659b61b3
commit
73f615745c
1 changed files with 9 additions and 8 deletions
|
@ -1,14 +1,15 @@
|
||||||
{ lib, ... }:
|
{ lib, ... }:
|
||||||
let
|
let
|
||||||
dpi = {
|
setting = "600@1000";
|
||||||
"SteelSeries SteelSeries Aerox 3 Wireless" = "600@1000";
|
devices = [
|
||||||
"Logitech G Pro Gaming Mouse" = "600@1000";
|
"SteelSeries SteelSeries Aerox 3 Wireless"
|
||||||
"Logitech G305" = "600@1000";
|
"Logitech G Pro Gaming Mouse"
|
||||||
"Glorious Model O" = "600@1000";
|
"Logitech G305"
|
||||||
};
|
"Glorious Model O"
|
||||||
|
];
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
services.udev.extraHwdb = lib.concatMapStrings
|
services.udev.extraHwdb = lib.concatMapStrings
|
||||||
(n: "\nmouse:usb:*:name:${n}:*\n MOUSE_DPI=${dpi.${n}}\n")
|
(n: "\nmouse:usb:*:name:${n}:*\n MOUSE_DPI=${setting}\n")
|
||||||
(builtins.attrNames dpi);
|
(devices);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue