2020-04-06 10:55:58 +00:00
|
|
|
{ config, pkgs, ... }: {
|
2019-09-15 21:12:08 +00:00
|
|
|
config = {
|
|
|
|
services.sxhkd = {
|
|
|
|
enable = true;
|
|
|
|
|
2021-01-14 00:56:32 +00:00
|
|
|
package = pkgs.runCommandLocal "dummy-package" { } "mkdir $out" // {
|
|
|
|
outPath = "@sxhkd@";
|
|
|
|
};
|
|
|
|
|
2019-09-15 21:12:08 +00:00
|
|
|
keybindings = {
|
|
|
|
"super + a" = "run command a";
|
|
|
|
"super + b" = null;
|
|
|
|
"super + Shift + b" = "run command b";
|
|
|
|
};
|
|
|
|
|
|
|
|
extraConfig = ''
|
|
|
|
super + c
|
|
|
|
call command c
|
2020-02-01 23:39:17 +00:00
|
|
|
|
2019-09-15 21:12:08 +00:00
|
|
|
# comment
|
|
|
|
super + d
|
|
|
|
call command d
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
nmt.script = ''
|
2020-04-09 22:25:21 +00:00
|
|
|
sxhkdrc=home-files/.config/sxhkd/sxhkdrc
|
2019-09-15 21:12:08 +00:00
|
|
|
|
|
|
|
assertFileExists $sxhkdrc
|
|
|
|
|
|
|
|
assertFileContent $sxhkdrc ${./sxhkdrc}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|