Xorg: Difference between revisions

imported>Mic92
link to graphic cards
imported>Cas1no
No edit summary
Line 28: Line 28:
fullhd. This will only set linux console fonts xserver dpi settings and environment variables still needs to be applied manually.
fullhd. This will only set linux console fonts xserver dpi settings and environment variables still needs to be applied manually.


== Disabling mouse acceleration ==
== Disabling touchpad and mouse accelerations ==
To disable mouse acceleration for a touchpad, it's as simple as
To disable touchpad and mouse accelerations just add the following lines to your <code>configuration.nix</code>


<pre>
<pre>
   services.xserver.libinput.enable = true;
   services.xserver = {
  services.xserver.libinput.accelProfile = "flat";
    enable = true;
</pre>


But to disable it for a mouse, it's a bit more wordy -
    ...


<pre>
    libinput = {
  services.xserver.libinput.enable = true;
      enable = true;
  services.xserver.config = ''
 
    Section "InputClass"
      # disabling mouse acceleration
       Identifier "mouse accel"
      mouse = {
       Driver "libinput"
        accelProfile = "flat";
       MatchIsPointer "on"
       };
      Option "AccelProfile" "flat"
 
       Option "AccelSpeed" "0"
       # disabling touchpad acceleration
     EndSection
       touchpad = {
   '';
        accelProfile = "flat";
       };
    };
 
     ...
 
   };
</pre>
</pre>