<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.nixos.org/w/index.php?action=history&amp;feed=atom&amp;title=Mouse_acceleration</id>
	<title>Mouse acceleration - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.nixos.org/w/index.php?action=history&amp;feed=atom&amp;title=Mouse_acceleration"/>
	<link rel="alternate" type="text/html" href="https://wiki.nixos.org/w/index.php?title=Mouse_acceleration&amp;action=history"/>
	<updated>2026-06-16T06:31:36Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://wiki.nixos.org/w/index.php?title=Mouse_acceleration&amp;diff=30048&amp;oldid=prev</id>
		<title>Phobos: Created a page for mouse acceleration, with an example setup for maccel</title>
		<link rel="alternate" type="text/html" href="https://wiki.nixos.org/w/index.php?title=Mouse_acceleration&amp;diff=30048&amp;oldid=prev"/>
		<updated>2026-02-21T21:58:32Z</updated>

		<summary type="html">&lt;p&gt;Created a page for mouse acceleration, with an example setup for maccel&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Mouse acceleration is an algorithm that increases the distance the cursor travels depending on the speed that the cursor moves, as opposed to a linear movement that always moves the cursor the same amount regardless of speed. &lt;br /&gt;
&lt;br /&gt;
Some desktop environments such as [[KDE Plasma]] have the option to enable/disable mouse acceleration in settings.  In Xorg it is enabled by default, to configure this behavior see [[Xorg#Disabling touchpad and mouse accelerations|Disabling touchpad and mouse accelerations]] on the [[Xorg]] page.&lt;br /&gt;
&lt;br /&gt;
If you would like to configure mouse acceleration curves on NixOS, an option you may use is [https://www.maccel.org/ maccel].&lt;br /&gt;
&lt;br /&gt;
== Maccel ==&lt;br /&gt;
The program maccel is available as a [[flake]]. It may be configured declaratively through nix. Find more info on the [https://github.com/Gnarus-G/maccel maccel GitHub] and the [https://github.com/Gnarus-G/maccel/blob/main/README_NIXOS.md flake section of the GitHub].&lt;br /&gt;
&lt;br /&gt;
Flake example:&lt;br /&gt;
{{File|3={&lt;br /&gt;
  inputs.maccel.url = &amp;quot;github:Gnarus-G/maccel&amp;quot;;&lt;br /&gt;
  # ...&lt;br /&gt;
&lt;br /&gt;
  outputs = {nixpkgs, ...} @ inputs: {&lt;br /&gt;
    nixosConfigurations.YOUR_HOSTNAME = nixpkgs.lib.nixosSystem {&lt;br /&gt;
      specialArgs = { inherit inputs; }; &lt;br /&gt;
      modules = [&lt;br /&gt;
        ./configuration.nix&lt;br /&gt;
        # ...&lt;br /&gt;
      ];&lt;br /&gt;
    };&lt;br /&gt;
  };&lt;br /&gt;
}|name=flake.nix|lang=nix}}&lt;br /&gt;
Configuration example:&lt;br /&gt;
{{File|3={inputs, ...}: {&lt;br /&gt;
  imports = [&lt;br /&gt;
    inputs.maccel.nixosModules.default&lt;br /&gt;
  ];&lt;br /&gt;
&lt;br /&gt;
  hardware.maccel = {&lt;br /&gt;
    enable = true;&lt;br /&gt;
    enableCli = true; # Allows changing parameters through the CLI, session only.&lt;br /&gt;
    parameters = {&lt;br /&gt;
      # Common (all modes)&lt;br /&gt;
      sensMultiplier = 1;&lt;br /&gt;
      yxRatio = 1.0;&lt;br /&gt;
      inputDpi = 800.0;&lt;br /&gt;
      angleRotation = 0.0;&lt;br /&gt;
      mode = &amp;quot;synchronous&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
      # Linear mode&lt;br /&gt;
      acceleration = 0.3;&lt;br /&gt;
      offset = 2.0;&lt;br /&gt;
      outputCap = 2.0;&lt;br /&gt;
&lt;br /&gt;
      # Natural mode&lt;br /&gt;
      #decayRate = 0.1;&lt;br /&gt;
      #offset = 2.0;&lt;br /&gt;
      #limit = 1.5;&lt;br /&gt;
&lt;br /&gt;
      # Synchronous mode&lt;br /&gt;
      #gamma = 1.0;&lt;br /&gt;
      #smooth = 0.5;&lt;br /&gt;
      #motivity = 2.5;&lt;br /&gt;
      #syncSpeed = 10.0;&lt;br /&gt;
    };&lt;br /&gt;
  };&lt;br /&gt;
&lt;br /&gt;
  # Use CLI/TUI without sudo&lt;br /&gt;
  users.groups.maccel.members = [&amp;quot;YOUR_HOSTNAME&amp;quot;];&lt;br /&gt;
}|name=configuration.nix|lang=nix}}&lt;br /&gt;
Afterwards you may need to reboot before maccel can take effect.&lt;br /&gt;
&lt;br /&gt;
The CLI may be accessed using:&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;$ maccel tui&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Phobos</name></author>
	</entry>
</feed>