2024-04-20 13:42:06 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
{
|
2022-04-29 02:12:16 +00:00
|
|
|
|
2023-04-15 16:58:37 +00:00
|
|
|
config = lib.mkIf config.gui.enable {
|
2022-04-29 02:12:16 +00:00
|
|
|
|
2023-04-15 16:58:37 +00:00
|
|
|
# Mouse customization
|
|
|
|
services.ratbagd.enable = true;
|
2022-04-30 16:32:00 +00:00
|
|
|
|
2023-04-15 16:58:37 +00:00
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
libratbag # Mouse adjustments
|
|
|
|
piper # Mouse adjustments GUI
|
|
|
|
];
|
2022-04-29 02:12:16 +00:00
|
|
|
|
2024-05-05 19:54:12 +00:00
|
|
|
services.libinput.mouse = {
|
2023-04-15 16:58:37 +00:00
|
|
|
# Disable mouse acceleration
|
|
|
|
accelProfile = "flat";
|
|
|
|
accelSpeed = "1.15";
|
2022-12-21 21:18:03 +00:00
|
|
|
};
|
2024-07-07 14:06:09 +00:00
|
|
|
|
|
|
|
# Cursor
|
|
|
|
home-manager.users.${config.user}.home.pointerCursor = {
|
|
|
|
name = "Adwaita";
|
2024-08-02 02:41:15 +00:00
|
|
|
package = pkgs.adwaita-icon-theme;
|
2024-07-07 14:06:09 +00:00
|
|
|
size = 24;
|
|
|
|
gtk.enable = true;
|
|
|
|
x11.enable = true;
|
|
|
|
};
|
|
|
|
|
2023-04-15 16:58:37 +00:00
|
|
|
};
|
2022-04-29 02:12:16 +00:00
|
|
|
}
|