mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-14 21:11:08 +01:00
sxhkd: allow usage of derivations as keybind commands (#4169)
This makes it consistent with some other options, like `systemd.user.services.Service.ExecStart`.
This commit is contained in:
parent
0f71012724
commit
44d1a8542a
3 changed files with 18 additions and 3 deletions
|
|
@ -38,13 +38,15 @@ in {
|
|||
};
|
||||
|
||||
keybindings = mkOption {
|
||||
type = types.attrsOf (types.nullOr types.str);
|
||||
type =
|
||||
types.attrsOf (types.nullOr (types.oneOf [ types.str types.path ]));
|
||||
default = { };
|
||||
description = "An attribute set that assigns hotkeys to commands.";
|
||||
example = literalExpression ''
|
||||
{
|
||||
"super + shift + {r,c}" = "i3-msg {restart,reload}";
|
||||
"super + {s,w}" = "i3-msg {stacking,tabbed}";
|
||||
"super + F1" = pkgs.writeShellScript "script" "echo $USER";
|
||||
}
|
||||
'';
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue