cfcd52ff70
GitOrigin-RevId: 70c5b268e10025c70823767f4fb49e240b40151d
32 lines
551 B
Nix
32 lines
551 B
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
services.sxhkd = {
|
|
enable = true;
|
|
|
|
package = config.lib.test.mkStubPackage { outPath = "@sxhkd@"; };
|
|
|
|
keybindings = {
|
|
"super + a" = "run command a";
|
|
"super + b" = null;
|
|
"super + Shift + b" = "run command b";
|
|
};
|
|
|
|
extraConfig = ''
|
|
super + c
|
|
call command c
|
|
|
|
# comment
|
|
super + d
|
|
call command d
|
|
'';
|
|
};
|
|
|
|
nmt.script = ''
|
|
sxhkdrc=home-files/.config/sxhkd/sxhkdrc
|
|
|
|
assertFileExists $sxhkdrc
|
|
|
|
assertFileContent $sxhkdrc ${./sxhkdrc}
|
|
'';
|
|
}
|