Skip to content

Commit

Permalink
feat(wacom): added scroll to middle button
Browse files Browse the repository at this point in the history
  • Loading branch information
Wittano committed Oct 2, 2024
1 parent cdb0e95 commit c7f624d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion modules/dev/ide.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ let
web.package = webstorm;
andorid.package = unstable.andorid-studio;
haskell.extraConfig = {
home-manager.users.wittano.home.packages = with unstable; [ zed-editor ];
modules.dev.neovim.enable = true;
};
fork.extraConfig = {
modules.dev.neovim.enable = true;
Expand Down
10 changes: 10 additions & 0 deletions modules/hardware/wacom.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ let
for d in $devices; do
xsetwacom --set "$d" MapToOutput HEAD-0
# Enable scrolling on middle(lower) button
xsetwacom --set "$d" Button 2 "button +2 pan"
xsetwacom --set "$d" PanScrollThreshold 150
done
'';
};
Expand All @@ -30,6 +33,13 @@ in
# Development fixs and features for drivers
modules.dev.lang.ides = [ "cpp" ];

services.udev = {
enable = mkForce true;
extraRules = ''
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="056a", TAG+="systemd", ENV{SYSTEMD_USER_WANTS}+="${name}.service"
'';
};

home-manager.users.wittano = {
home.packages = with pkgs; [ krita setupWacom ];

Expand Down

0 comments on commit c7f624d

Please sign in to comment.