From 2494c4c785e956714eb8fe300f6b7fd3be922167 Mon Sep 17 00:00:00 2001 From: ediblerope Date: Mon, 11 May 2026 09:49:09 +0100 Subject: [PATCH] hyprland: add hyprspace overview, rebind launcher to Super+R Loads hyprlandPlugins.hyprspace via the home-manager plugins list and binds overview:toggle to release-of-Super. Frees Super+Space and moves wofi to Super+R to match the new gesture. Co-Authored-By: Claude Opus 4.7 --- settings/hyprland.nix | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/settings/hyprland.nix b/settings/hyprland.nix index 4edb50b..c711aa2 100644 --- a/settings/hyprland.nix +++ b/settings/hyprland.nix @@ -57,6 +57,8 @@ enable = true; systemd.variables = [ "--all" ]; + plugins = [ pkgs.hyprlandPlugins.hyprspace ]; + settings = { monitor = ",preferred,auto,1"; @@ -111,11 +113,22 @@ focus_on_activate = true; }; + # Hyprspace overview plugin — see README for full option set + plugin.overview = { + centerAligned = true; + hideTopLayers = true; + hideOverlayLayers = true; + showNewWorkspace = true; + exitOnClick = true; + exitOnSwitch = true; + dragAlpha = 0.8; + }; + # Mirror the GNOME bindings so muscle memory carries over bind = [ "$mod, T, exec, $term" "$mod, E, exec, nautilus" - "$mod, SPACE, exec, $menu" + "$mod, R, exec, $menu" "$mod, Q, killactive" "$mod SHIFT, E, exit" @@ -177,6 +190,15 @@ "$mod, mouse:273, resizewindow" ]; + # Tap Super → Hyprspace overview. Hyprland can't truly distinguish + # tap vs. hold on a modifier, so this also fires when releasing + # Super after any combo (e.g. Super+T) — the overview will flash + # briefly. If that's annoying, switch to a regular combo bind, or + # use keyd to remap Super-tap to a dedicated keycode. + bindr = [ + "SUPER, SUPER_L, overview:toggle" + ]; + bindel = [ ", XF86AudioRaiseVolume, exec, pamixer -i 5" ", XF86AudioLowerVolume, exec, pamixer -d 5"