feat(hyprland): add window movement binds
This commit was merged in pull request #151.
This commit is contained in:
@@ -12,7 +12,10 @@
|
||||
entry:
|
||||
(entry.value.action.kind == "exec" && entry.value.action.command != null)
|
||||
|| (
|
||||
entry.value.action.kind == "focus"
|
||||
builtins.elem entry.value.action.kind [
|
||||
"focus"
|
||||
"move-window"
|
||||
]
|
||||
&& lib.xor (entry.value.action.direction != null) (entry.value.action.workspace != null)
|
||||
)
|
||||
) entries;
|
||||
@@ -37,6 +40,7 @@
|
||||
type = lib.types.enum [
|
||||
"exec"
|
||||
"focus"
|
||||
"move-window"
|
||||
];
|
||||
};
|
||||
|
||||
@@ -48,7 +52,7 @@
|
||||
};
|
||||
|
||||
direction = lib.mkOption {
|
||||
description = "Direction focused by a focus keybind.";
|
||||
description = "Direction targeted by a keybind action.";
|
||||
type = lib.types.nullOr (
|
||||
lib.types.enum [
|
||||
"down"
|
||||
@@ -62,7 +66,7 @@
|
||||
};
|
||||
|
||||
workspace = lib.mkOption {
|
||||
description = "Workspace focused by a focus keybind.";
|
||||
description = "Workspace targeted by a keybind action.";
|
||||
type = lib.types.nullOr lib.types.int;
|
||||
default = null;
|
||||
example = 1;
|
||||
|
||||
Reference in New Issue
Block a user