hyprland: add submaps for common open commands

This commit is contained in:
2026-01-06 12:04:05 +01:00
parent 713f5bfe8c
commit bb9988245a

View File

@@ -152,6 +152,37 @@ in {
# hyprlandPlugins.hyprbars # hyprlandPlugins.hyprbars
]; ];
submaps = {
"resize".settings = {
binde = [
", right, resizeactive, 20"
", left, resizeactive, -20 0"
", up, resizeactive, 0 -20"
", down, resizeactive, 0 20"
", l, resizeactive, 20"
", h, resizeactive, -20 0"
", k, resizeactive, 0 -20"
", j, resizeactive, 0 20"
];
bind = [
", q, submap, reset"
", escape, submap, reset"
", catchall, submap, reset" # make any other keypress cancel the submap
];
};
"open, reset".settings = {
bind = [
", e, exec, emacs"
", m, exec, open-messaging"
", b, exec, firefox"
", catchall, submap, reset" # make any other keypress cancel the submap
];
};
};
settings = { settings = {
"$mod" = "SUPER"; "$mod" = "SUPER";
@@ -280,8 +311,14 @@ in {
bind = bind =
[ [
# compositor commands # compositor commands
"$mod, Space, focuswindow, floating" #
"$mod SHIFT, Space, togglefloating," #
"$mod, R, submap, resize"
"$mod, SPACE, submap, open"
#
"$mod, V, focuswindow, floating"
"$mod SHIFT, V, togglefloating,"
"$mod, F, fullscreen," "$mod, F, fullscreen,"
"$mod, X, killactive," "$mod, X, killactive,"