2019-12-20 05:54:26 +01:00
|
|
|
{ config, pkgs, lib, ... }: {
|
2019-10-24 02:20:38 +02:00
|
|
|
|
2019-12-20 05:54:26 +01:00
|
|
|
environment.systemPackages = with pkgs; [ xclip xtrlock-pam xorg.xev ];
|
2019-10-24 02:20:38 +02:00
|
|
|
|
|
|
|
system.custom.x11 = {
|
2019-12-20 05:54:26 +01:00
|
|
|
enable = true;
|
2019-10-24 02:20:38 +02:00
|
|
|
autoLoginUser = config.users.users.mainUser.name;
|
|
|
|
};
|
|
|
|
|
|
|
|
system.custom.fonts.enable = true;
|
|
|
|
|
2020-07-12 16:17:43 +02:00
|
|
|
# xinput list < to show devices
|
|
|
|
# https://unix.stackexchange.com/questions/90572/how-can-i-set-mouse-sensitivity-not-just-mouse-acceleration
|
|
|
|
services.xserver.displayManager.sessionCommands = let
|
|
|
|
mouseSpeed = name: speed: ''
|
|
|
|
${pkgs.xlibs.xinput}/bin/xinput set-prop "${name}" "Coordinate Transformation Matrix" ${
|
|
|
|
toString speed
|
|
|
|
} 0 0 0 ${toString speed} 0 0 0 1 || true
|
|
|
|
'';
|
|
|
|
in lib.concatStringsSep "\n"
|
|
|
|
[ (mouseSpeed "Logitech Gaming Mouse G400" 3.1) ];
|
|
|
|
|
2019-10-24 02:20:38 +02:00
|
|
|
}
|
|
|
|
|