stop declarative maccel parameter tuning in nixos
This commit is contained in:
+13
-6
@@ -100,12 +100,19 @@ in {
|
||||
hardware.maccel = {
|
||||
enable = true;
|
||||
enableCli = true;
|
||||
parameters = {
|
||||
mode = "linear";
|
||||
sensMultiplier = 1.0;
|
||||
acceleration = 0.3;
|
||||
offset = 2.0;
|
||||
outputCap = 2.0;
|
||||
};
|
||||
|
||||
# Dotfile-managed maccel settings: place an executable script at
|
||||
# ~/.config/maccel/apply.sh with your preferred `maccel set ...` commands.
|
||||
systemd.user.services.maccel-apply-dotfiles = {
|
||||
description = "apply maccel params from ~/.config/maccel/apply.sh";
|
||||
wantedBy = ["default.target"];
|
||||
after = ["default.target"];
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
ExecStart = ''
|
||||
${pkgs.bash}/bin/bash -lc 'PATH=/run/current-system/sw/bin:$PATH; if [ -x "$HOME/.config/maccel/apply.sh" ]; then "$HOME/.config/maccel/apply.sh"; fi'
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user