feat(hyprland): add workspace window movement binds
This commit is contained in:
@@ -31,16 +31,34 @@ in
|
|||||||
registry.keybind.${config.networking.hostName} = lib.mkMerge [
|
registry.keybind.${config.networking.hostName} = lib.mkMerge [
|
||||||
# Generate numeric workspace keybinds.
|
# Generate numeric workspace keybinds.
|
||||||
(lib.listToAttrs (
|
(lib.listToAttrs (
|
||||||
map (workspace: {
|
lib.concatMap (
|
||||||
name = "hyprland-workspace-${toString workspace}";
|
workspace:
|
||||||
value = {
|
let
|
||||||
keys = "SUPER + ${toString workspace}";
|
workspaceText = toString workspace;
|
||||||
action = {
|
in
|
||||||
kind = "focus";
|
[
|
||||||
inherit workspace;
|
{
|
||||||
};
|
name = "hyprland-workspace-${workspaceText}";
|
||||||
};
|
value = {
|
||||||
}) (lib.range 1 9)
|
keys = "SUPER + ${workspaceText}";
|
||||||
|
action = {
|
||||||
|
kind = "focus";
|
||||||
|
inherit workspace;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "hyprland-move-to-workspace-${workspaceText}";
|
||||||
|
value = {
|
||||||
|
keys = "SUPER + Shift + ${workspaceText}";
|
||||||
|
action = {
|
||||||
|
kind = "move-window";
|
||||||
|
inherit workspace;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
]
|
||||||
|
) (lib.range 1 9)
|
||||||
))
|
))
|
||||||
# Generate directional keybinds.
|
# Generate directional keybinds.
|
||||||
(lib.listToAttrs (
|
(lib.listToAttrs (
|
||||||
|
|||||||
Reference in New Issue
Block a user