refactor(hyprland): rename keybind registry
This commit is contained in:
@@ -5,7 +5,6 @@
|
|||||||
}:
|
}:
|
||||||
# The Hyprland compositor.
|
# The Hyprland compositor.
|
||||||
let
|
let
|
||||||
|
|
||||||
mkBind = keybind: {
|
mkBind = keybind: {
|
||||||
_args = [
|
_args = [
|
||||||
(lib.concatStringsSep " + " keybind.keys)
|
(lib.concatStringsSep " + " keybind.keys)
|
||||||
@@ -13,7 +12,7 @@ let
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
keybinds = lib.attrValues (
|
keybinds = lib.attrValues (
|
||||||
lib.attrByPath [ config.networking.hostName ] { } config.registry.desktop-keybind
|
lib.attrByPath [ config.networking.hostName ] { } config.registry.keybind
|
||||||
);
|
);
|
||||||
|
|
||||||
toLua = lib.generators.toLua { };
|
toLua = lib.generators.toLua { };
|
||||||
@@ -22,7 +21,7 @@ in
|
|||||||
options.modules.desktop.session.hyprland.enable = lib.mkEnableOption "the Hyprland compositor";
|
options.modules.desktop.session.hyprland.enable = lib.mkEnableOption "the Hyprland compositor";
|
||||||
|
|
||||||
config = lib.mkIf config.modules.desktop.session.hyprland.enable {
|
config = lib.mkIf config.modules.desktop.session.hyprland.enable {
|
||||||
registry.desktop-keybind.${config.networking.hostName} = {
|
registry.keybind.${config.networking.hostName} = {
|
||||||
hyprland-terminal = {
|
hyprland-terminal = {
|
||||||
keys = [
|
keys = [
|
||||||
"SUPER"
|
"SUPER"
|
||||||
|
|||||||
Reference in New Issue
Block a user