Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
base: 88e9df7b8d51
Choose a base ref
...
head repository: NixOS/nixpkgs
compare: 5153deedd88a
Choose a head ref
  • 4 commits
  • 3 files changed
  • 2 contributors

Commits on Jan 13, 2021

  1. nixos/libinput: separate settings by mouse/touchpad

    This commits deprecates `services.xserver.libinput` for multiple
    settings, one for each kind of device:
    
    - `services.xserver.libinput.mouse`
    - `services.xserver.libinput.touchpad`
    
    Looking at `man 4 libinput`, they basically have the same options so I
    simply replicated them, even if some options doesn't make sense for
    mouse (`tapping` for example).
    
    With this commit this is now possible:
    
    ```nix
    {
      services.xserver.libinput = {
        enable = true;
        mouse = {
          accelProfile = "flat";
        };
        touchpad = {
          naturalScrolling = true;
        };
      };
    }
    ```
    
    And you will have a mouse with no natural scrolling but with accel
    profile flat, while touchpad will have natural scrolling but accel
    profile adaptative (default).
    
    It is possible to support more device types
    (tablets/keyboards/touchscreens), but at least looking at the
    libinput manual for those devices it doesn't seem that it has any
    configuration options for them. They can still be configured using
    `services.xserver.inputClassSections` though, and this will work now
    since there is no rule by default that matches them.
    
    Closes issue #75007, while also making configuration of mouses and
    touchpads using Nix attrs possible like said in PR #73785.
    thiagokokada committed Jan 13, 2021
    Copy the full SHA
    cd15b3a View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    887386f View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    0f762e5 View commit details
    Browse the repository at this point in the history

Commits on Jan 21, 2021

  1. Merge pull request #108909 from thiagokokada/libinput-by-device-type

    nixos/libinput: separate settings by mouse/touchpad
    lheckemann committed Jan 21, 2021
    Copy the full SHA
    5153dee View commit details
    Browse the repository at this point in the history