2021-11-04 16:42:44 +00:00
|
|
|
{ config, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
services.sxhkd = {
|
|
|
|
enable = true;
|
2020-10-12 00:22:58 +00:00
|
|
|
|
2021-11-04 16:42:44 +00:00
|
|
|
package = config.lib.test.mkStubPackage { outPath = "@sxhkd@"; };
|
|
|
|
|
|
|
|
keybindings = {
|
|
|
|
"super + a" = "run command a";
|
|
|
|
"super + b" = null;
|
|
|
|
"super + Shift + b" = "run command b";
|
|
|
|
};
|
2020-10-12 00:22:58 +00:00
|
|
|
|
2021-11-04 16:42:44 +00:00
|
|
|
extraConfig = ''
|
|
|
|
super + c
|
|
|
|
call command c
|
2020-10-12 00:22:58 +00:00
|
|
|
|
2021-11-04 16:42:44 +00:00
|
|
|
# comment
|
|
|
|
super + d
|
|
|
|
call command d
|
2020-10-12 00:22:58 +00:00
|
|
|
'';
|
|
|
|
};
|
2021-11-04 16:42:44 +00:00
|
|
|
|
|
|
|
nmt.script = ''
|
|
|
|
sxhkdrc=home-files/.config/sxhkd/sxhkdrc
|
|
|
|
|
|
|
|
assertFileExists $sxhkdrc
|
|
|
|
|
|
|
|
assertFileContent $sxhkdrc ${./sxhkdrc}
|
|
|
|
'';
|
2020-10-12 00:22:58 +00:00
|
|
|
}
|