test
This commit is contained in:
+1
-1
@@ -11,7 +11,7 @@
|
||||
terminal = {
|
||||
termFont = "JetBrainsMono Nerd Font"; # e.g., JetBrainsMono Nerd Font
|
||||
termSize = "18";
|
||||
termShell = "fish";
|
||||
termShell = "zsh";
|
||||
|
||||
shellAliases = {
|
||||
ls = "ls --color=auto";
|
||||
|
||||
@@ -2,6 +2,5 @@
|
||||
imports = [
|
||||
../../pkgs/btop/default.nix
|
||||
../../pkgs/matugen/default.nix
|
||||
../../pkgs/logiops/default.nix
|
||||
];
|
||||
}
|
||||
|
||||
@@ -1,77 +0,0 @@
|
||||
devices: (
|
||||
{
|
||||
name: "MX Master 3S";
|
||||
smartshift:
|
||||
{
|
||||
on: true;
|
||||
threshold: 30;
|
||||
torque: 50;
|
||||
};
|
||||
hiresscroll:
|
||||
{
|
||||
hires: true;
|
||||
invert: false;
|
||||
target: false;
|
||||
};
|
||||
dpi: 8000;
|
||||
|
||||
buttons: (
|
||||
{
|
||||
cid: 0xc3;
|
||||
action =
|
||||
{
|
||||
type: "Gestures";
|
||||
gestures: (
|
||||
{
|
||||
direction: "Up";
|
||||
mode: "OnRelease";
|
||||
action =
|
||||
{
|
||||
type: "Keypress";
|
||||
keys: ["KEY_UP"];
|
||||
};
|
||||
},
|
||||
{
|
||||
direction: "Down";
|
||||
mode: "OnRelease";
|
||||
action =
|
||||
{
|
||||
type: "Keypress";
|
||||
keys: ["KEY_DOWN"];
|
||||
};
|
||||
},
|
||||
{
|
||||
direction: "Left";
|
||||
mode: "OnRelease";
|
||||
action =
|
||||
{
|
||||
type: "CycleDPI";
|
||||
dpis: [400, 600, 800, 1000, 1200, 1400, 1600];
|
||||
};
|
||||
},
|
||||
{
|
||||
direction: "Right";
|
||||
mode: "OnRelease";
|
||||
action =
|
||||
{
|
||||
type = "ToggleSmartshift";
|
||||
}
|
||||
},
|
||||
{
|
||||
direction: "None"
|
||||
mode: "NoPress"
|
||||
}
|
||||
);
|
||||
};
|
||||
},
|
||||
{
|
||||
cid: 0xc4;
|
||||
action =
|
||||
{
|
||||
type: "Keypress";
|
||||
keys: ["KEY_A"];
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
);
|
||||
@@ -1,5 +0,0 @@
|
||||
{...}: {
|
||||
home.file.".config/logiops/logid.cfg" = {
|
||||
source = "./custom/logid.cfg";
|
||||
};
|
||||
}
|
||||
+77
-1
@@ -1,3 +1,79 @@
|
||||
{...}: {
|
||||
{pkgs, ...}: {
|
||||
services.printing.enable = true;
|
||||
|
||||
# Install logiops package
|
||||
environment.systemPackages = [pkgs.logiops];
|
||||
|
||||
# Create systemd service
|
||||
systemd.services.logiops = {
|
||||
description = "An unofficial userspace driver for HID++ Logitech devices";
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
ExecStart = "${pkgs.logiops}/bin/logid";
|
||||
};
|
||||
};
|
||||
|
||||
# Configuration for logiops
|
||||
environment.etc."logid.cfg".text = ''
|
||||
devices: ({
|
||||
name: "Wireless Mouse MX Master 3";
|
||||
smartshift: {
|
||||
on: true;
|
||||
threshold: 12;
|
||||
};
|
||||
hiresscroll: {
|
||||
hires: true;
|
||||
target: false;
|
||||
};
|
||||
dpi: 1200;
|
||||
buttons: ({
|
||||
cid: 0xc3;
|
||||
action = {
|
||||
type: "Gestures";
|
||||
gestures: ({
|
||||
direction: "Left";
|
||||
mode: "OnRelease";
|
||||
action = {
|
||||
type = "Keypress";
|
||||
keys: ["KEY_F15"];
|
||||
};
|
||||
}, {
|
||||
direction: "Right";
|
||||
mode: "OnRelease";
|
||||
action = {
|
||||
type = "Keypress";
|
||||
keys: ["KEY_F16"];
|
||||
};
|
||||
}, {
|
||||
direction: "Down";
|
||||
mode: "OnRelease";
|
||||
action = {
|
||||
type: "Keypress";
|
||||
keys: ["KEY_F17"];
|
||||
};
|
||||
}, {
|
||||
direction: "Up";
|
||||
mode: "OnRelease";
|
||||
action = {
|
||||
type: "Keypress";
|
||||
keys: ["KEY_F18"];
|
||||
};
|
||||
}, {
|
||||
direction: "None";
|
||||
mode: "OnRelease";
|
||||
action = {
|
||||
type = "Keypress";
|
||||
keys: ["KEY_PLAYPAUSE"];
|
||||
};
|
||||
});
|
||||
};
|
||||
}, {
|
||||
cid: 0xc4;
|
||||
action = {
|
||||
type: "Keypress";
|
||||
keys: ["KEY_F19"];
|
||||
};
|
||||
});
|
||||
});
|
||||
'';
|
||||
}
|
||||
|
||||
+1
-1
@@ -6,7 +6,7 @@
|
||||
}: {
|
||||
users.users.${username} = {
|
||||
isNormalUser = true;
|
||||
extraGroups = ["wheel" "networkmanager"];
|
||||
extraGroups = ["wheel" "networkmanager" "plugdev" "input"];
|
||||
initialHashedPassword = "$6$Qab6SSvEJM2YRtVA$7Oyl7E3pp/FKtCC.2Tb2tyzp3yp7BFHFAKngUYJssQJ.v1Q2mqsgW9m7njpaKNcka2vyCwrnmw1R.YPlFqR0p1";
|
||||
# shell = pkgs.zsh;
|
||||
shell = pkgs.${terminal.termShell};
|
||||
|
||||
Reference in New Issue
Block a user