2021-09-26 09:08:45 +00:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
services.sxhkd = {
|
|
|
|
enable = true;
|
2019-09-15 21:12:08 +00:00
|
|
|
|
2021-09-26 09:08:45 +00:00
|
|
|
package = config.lib.test.mkStubPackage { outPath = "@sxhkd@"; };
|
|
|
|
|
|
|
|
keybindings = {
|
|
|
|
"super + a" = "run command a";
|
|
|
|
"super + b" = null;
|
|
|
|
"super + Shift + b" = "run command b";
|
|
|
|
};
|
2019-09-15 21:12:08 +00:00
|
|
|
|
2021-09-26 09:08:45 +00:00
|
|
|
extraConfig = ''
|
|
|
|
super + c
|
|
|
|
call command c
|
2019-09-15 21:12:08 +00:00
|
|
|
|
2021-09-26 09:08:45 +00:00
|
|
|
# comment
|
|
|
|
super + d
|
|
|
|
call command d
|
2019-09-15 21:12:08 +00:00
|
|
|
'';
|
|
|
|
};
|
2021-09-26 09:08:45 +00:00
|
|
|
|
|
|
|
nmt.script = ''
|
|
|
|
sxhkdrc=home-files/.config/sxhkd/sxhkdrc
|
|
|
|
|
|
|
|
assertFileExists $sxhkdrc
|
|
|
|
|
|
|
|
assertFileContent $sxhkdrc ${./sxhkdrc}
|
|
|
|
'';
|
2019-09-15 21:12:08 +00:00
|
|
|
}
|