home-manager/tests/modules/services/fusuma/settings.nix
iosmanthus 8bdfa41b4e
fusuma: add module
Fusuma is a tool supports multitouch gestures with libinput driver on
Linux.
2022-03-13 22:17:55 +01:00

24 lines
523 B
Nix

{ config, ... }:
{
services.fusuma = {
enable = true;
extraPackages = [ (config.lib.test.mkStubPackage { }) ];
settings = {
threshold = { swipe = 1; };
interval = { swipe = 7; };
swipe = {
"3" = { left = { command = "xdotool key ctrl+alt+Right"; }; };
"4" = { left = { command = "xdotool key ctrl+shift+alt+Right"; }; };
};
};
};
nmt.script = ''
assertFileContent \
home-files/.config/fusuma/config.yaml \
${./expected-settings.yaml}
'';
}