1
1
Fork 0

Compare commits

..

4 commits

Author SHA1 Message Date
72f885ed26
nix: unify hyprland devices
Signed-off-by: Myned <dev@bjork.tech>
2024-11-27 16:12:59 -06:00
57985b98a5
walker: update config
Signed-off-by: Myned <dev@bjork.tech>
2024-11-27 16:12:30 -06:00
24a4366c3d
nix: update flake.lock
Signed-off-by: Myned <dev@bjork.tech>
2024-11-27 16:11:47 -06:00
3eaf7234f8
walker: use static version
Signed-off-by: Myned <dev@bjork.tech>
2024-11-27 16:11:40 -06:00
5 changed files with 34 additions and 49 deletions

View file

@ -67,7 +67,7 @@
nix-flatpak = flake "github:gmodena/nix-flatpak?ref=v0.4.1";
nix-vscode-extensions = flake "github:nix-community/nix-vscode-extensions" // unstable "nixpkgs";
nixd = flake "github:nix-community/nixd" // unstable "nixpkgs";
walker = flake "github:abenz1267/walker" // unstable "nixpkgs";
walker = flake "github:abenz1267/walker?ref=v0.10.1" // unstable "nixpkgs";
# Server flakes
conduwuit = flake "github:Myned/conduwuit" // unstable "nixpkgs";

7
flake.lock generated
View file

@ -2585,15 +2585,16 @@
]
},
"locked": {
"lastModified": 1732645327,
"narHash": "sha256-OuvYtemW3WHFKN7yKKGpZmSVmIwg78fgGRKvNgA+LIo=",
"lastModified": 1732685903,
"narHash": "sha256-0knpNVmMhgeu99gZmMtfQFsrrsGNSMBWUFo3inCIOms=",
"owner": "abenz1267",
"repo": "walker",
"rev": "39ff811badd479eea42638c829005282f2501c2f",
"rev": "adc8265bd7f17fea727ee8fba767782f394788ac",
"type": "github"
},
"original": {
"owner": "abenz1267",
"ref": "v0.10.1",
"repo": "walker",
"type": "github"
}

View file

@ -130,7 +130,7 @@
};
walker = {
inputs.nixpkgs.follows = "nixpkgs-unstable";
url = "github:abenz1267/walker";
url = "github:abenz1267/walker?ref=v0.10.1";
};
};
outputs = inputs: inputs.flakegen ./flake.in.nix inputs;

View file

@ -247,53 +247,37 @@ in {
# https://wiki.hyprland.org/Configuring/Variables/#custom-accel-profiles
# https://wayland.freedesktop.org/libinput/doc/latest/pointer-acceleration.html#the-custom-acceleration-profile
#?? custom <STEP> <POINTS...>
# TODO: Combine same devices
# FIXME: Hotplugging may result in different id
device = [
{
name = "kensington-orbit-wireless-tb-mouse";
accel_profile = "adaptive";
sensitivity = -0.6;
left_handed = true;
middle_button_emulation = true;
natural_scroll = true;
}
device = let
# Combine duplicate devices into one attrset
#?? (devices ["NAME"] {ATTRS})
devices = names: attrs: map (name: {inherit name;} // attrs) names;
in
flatten [
(devices ["kensington-orbit-wireless-tb-mouse" "orbit-bt5.0-mouse"] {
accel_profile = "adaptive";
left_handed = true;
middle_button_emulation = true;
natural_scroll = true;
sensitivity = -0.6;
})
{
name = "orbit-bt5.0-mouse";
accel_profile = "adaptive";
sensitivity = -0.6;
left_handed = true;
middle_button_emulation = true;
natural_scroll = true;
}
(devices ["logitech-m570"] {
accel_profile = "custom 1 0 1 3";
sensitivity = -0.2;
})
{
name = "logitech-m570";
accel_profile = "custom 1 0 1 3";
sensitivity = -0.2;
}
(devices ["nordic-2.4g-wireless-receiver-mouse" "protoarc-em11-nl-mouse"] {
sensitivity = -0.7;
})
{
name = "nordic-2.4g-wireless-receiver-mouse";
sensitivity = -0.7;
}
(devices ["razer-razer-viper-ultimate" "razer-razer-viper-ultimate-dongle"] {
sensitivity = -0.7;
})
{
name = "protoarc-em11-nl-mouse";
sensitivity = -0.7;
}
{
name = "razer-razer-viper-ultimate-dongle";
sensitivity = -0.7;
}
{
name = "wireless-controller-touchpad";
enabled = false;
}
];
(devices ["wireless-controller-touchpad"] {
enabled = false;
})
];
};
};
}

View file

@ -51,7 +51,7 @@ in {
builtins = {
applications = {
# BUG: Ghost entries are still visible with single module
actions = false;
actions.enabled = false;
hide_actions_with_empty_query = true;
placeholder = "";