refactor(hyprland): inline workspace key text
This commit is contained in:
@@ -11,34 +11,28 @@
|
|||||||
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 (
|
||||||
lib.concatMap (
|
lib.concatMap (workspace: [
|
||||||
workspace:
|
{
|
||||||
let
|
name = "hyprland-workspace-${toString workspace}";
|
||||||
workspaceText = toString workspace;
|
value = {
|
||||||
in
|
keys = "SUPER + ${toString workspace}";
|
||||||
[
|
action = {
|
||||||
{
|
kind = "focus";
|
||||||
name = "hyprland-workspace-${workspaceText}";
|
inherit workspace;
|
||||||
value = {
|
|
||||||
keys = "SUPER + ${workspaceText}";
|
|
||||||
action = {
|
|
||||||
kind = "focus";
|
|
||||||
inherit workspace;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
};
|
||||||
{
|
}
|
||||||
name = "hyprland-move-to-workspace-${workspaceText}";
|
{
|
||||||
value = {
|
name = "hyprland-move-to-workspace-${toString workspace}";
|
||||||
keys = "SUPER + SHIFT + ${workspaceText}";
|
value = {
|
||||||
action = {
|
keys = "SUPER + SHIFT + ${toString workspace}";
|
||||||
kind = "move-window";
|
action = {
|
||||||
inherit workspace;
|
kind = "move-window";
|
||||||
};
|
inherit workspace;
|
||||||
};
|
};
|
||||||
}
|
};
|
||||||
]
|
}
|
||||||
) (lib.range 1 9)
|
]) (lib.range 1 9)
|
||||||
))
|
))
|
||||||
|
|
||||||
# Generate directional keybinds.
|
# Generate directional keybinds.
|
||||||
|
|||||||
Reference in New Issue
Block a user