feat(hyprland): add remaining window actions #153
@@ -93,6 +93,22 @@
|
||||
}
|
||||
]
|
||||
))
|
||||
{
|
||||
hyprland-toggle-floating = {
|
||||
keys = "SUPER + Space";
|
||||
action.kind = "toggle-floating";
|
||||
};
|
||||
|
||||
hyprland-toggle-fullscreen = {
|
||||
keys = "SUPER + F";
|
||||
action.kind = "toggle-fullscreen";
|
||||
};
|
||||
|
||||
hyprland-close-window = {
|
||||
keys = "SUPER + SHIFT + Q";
|
||||
action.kind = "close-window";
|
||||
};
|
||||
}
|
||||
];
|
||||
|
||||
# This program integration owns the session, portals, and polkit, launched
|
||||
@@ -160,6 +176,9 @@
|
||||
.${keybind.action.direction}
|
||||
)
|
||||
})";
|
||||
"toggle-floating" = ''hl.dsp.window.float({ action = "toggle" })'';
|
||||
"toggle-fullscreen" = "hl.dsp.window.fullscreen()";
|
||||
"close-window" = "hl.dsp.window.close()";
|
||||
}
|
||||
.${keybind.action.kind}
|
||||
))
|
||||
|
||||
@@ -23,6 +23,16 @@
|
||||
&& entry.value.action.direction != null
|
||||
&& entry.value.action.workspace == null
|
||||
)
|
||||
|| (
|
||||
builtins.elem entry.value.action.kind [
|
||||
"toggle-floating"
|
||||
"toggle-fullscreen"
|
||||
"close-window"
|
||||
]
|
||||
&& entry.value.action.command == null
|
||||
&& entry.value.action.direction == null
|
||||
&& entry.value.action.workspace == null
|
||||
)
|
||||
) entries;
|
||||
message = "Desktop keybind actions must set the fields their kind requires.";
|
||||
}
|
||||
@@ -54,6 +64,9 @@
|
||||
"focus"
|
||||
"move-window"
|
||||
"resize-window"
|
||||
"toggle-floating"
|
||||
"toggle-fullscreen"
|
||||
"close-window"
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user