2020-04-06 12:55:58 +02:00
|
|
|
{ config, pkgs, ... }: {
|
2019-09-15 23:12:08 +02:00
|
|
|
config = {
|
|
|
|
services.sxhkd = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
keybindings = {
|
|
|
|
"super + a" = "run command a";
|
|
|
|
"super + b" = null;
|
|
|
|
"super + Shift + b" = "run command b";
|
|
|
|
};
|
|
|
|
|
|
|
|
extraConfig = ''
|
|
|
|
super + c
|
|
|
|
call command c
|
2020-02-02 00:39:17 +01:00
|
|
|
|
2019-09-15 23:12:08 +02:00
|
|
|
# comment
|
|
|
|
super + d
|
|
|
|
call command d
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2020-04-06 12:55:58 +02:00
|
|
|
nixpkgs.overlays =
|
|
|
|
[ (self: super: { sxhkd = pkgs.writeScriptBin "dummy-sxhkd" ""; }) ];
|
|
|
|
|
2019-09-15 23:12:08 +02:00
|
|
|
nmt.script = ''
|
|
|
|
local sxhkdrc=home-files/.config/sxhkd/sxhkdrc
|
|
|
|
|
|
|
|
assertFileExists $sxhkdrc
|
|
|
|
|
|
|
|
assertFileContent $sxhkdrc ${./sxhkdrc}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|