From d224b12babfce71964dc5b9acbd75fd68f395de9 Mon Sep 17 00:00:00 2001 From: kenji Date: Thu, 1 Jan 2026 23:27:23 -0600 Subject: [PATCH] add(hyprland): hyprspace --- apps/hyprland/default.nix | 3 ++- apps/hyprland/hypr/binds.nix | 3 +++ apps/hyprland/hypr/general.nix | 1 + apps/hyprland/hypr/misc.nix | 4 ++++ flake.lock | 39 ++++++++++++++++++++++++++++++---- flake.nix | 4 ++++ 6 files changed, 49 insertions(+), 5 deletions(-) diff --git a/apps/hyprland/default.nix b/apps/hyprland/default.nix index d334425..6e526a2 100644 --- a/apps/hyprland/default.nix +++ b/apps/hyprland/default.nix @@ -1,4 +1,4 @@ -{pkgs, ...}: { +{pkgs, inputs, ...}: { imports = [ ./hypr/binds.nix ./hypr/general.nix @@ -15,5 +15,6 @@ wayland.windowManager.hyprland.plugins = [ pkgs.hyprlandPlugins.hyprsplit pkgs.hyprlandPlugins.hypr-dynamic-cursors + pkgs.hyprlandPlugins.hyprspace ]; } diff --git a/apps/hyprland/hypr/binds.nix b/apps/hyprland/hypr/binds.nix index 92badf4..7ece5d4 100644 --- a/apps/hyprland/hypr/binds.nix +++ b/apps/hyprland/hypr/binds.nix @@ -69,6 +69,9 @@ # [Workspaces] Toggle between most recent workspaces "SUPER, Tab, Cycle workspaces, workspace, previous" + + # hyprspace - workspace overview + "SUPER, E, Toggle Workspace Overview, overview:toggle" ] ++ ( # Generate binds for Super + [1-5] to switch workspaces on current monitor diff --git a/apps/hyprland/hypr/general.nix b/apps/hyprland/hypr/general.nix index e171309..df01278 100644 --- a/apps/hyprland/hypr/general.nix +++ b/apps/hyprland/hypr/general.nix @@ -7,6 +7,7 @@ }; decoration = { rounding = 0; + active_opacity = 0.99; inactive_opacity = 0.70; shadow = { enabled = true; diff --git a/apps/hyprland/hypr/misc.nix b/apps/hyprland/hypr/misc.nix index 07be368..d221007 100644 --- a/apps/hyprland/hypr/misc.nix +++ b/apps/hyprland/hypr/misc.nix @@ -33,6 +33,10 @@ factor = 1.5; }; }; + + overview = { + # Using default settings + }; }; }; } diff --git a/flake.lock b/flake.lock index d5a3124..4673eb9 100644 --- a/flake.lock +++ b/flake.lock @@ -333,11 +333,11 @@ "xdph": "xdph" }, "locked": { - "lastModified": 1767201430, - "narHash": "sha256-4BUM06GqP5YAVnWvxkdeYuweMF6n+oKdxJI5S9TmA1E=", + "lastModified": 1767300597, + "narHash": "sha256-lGE1j1bEuNp7XoDP+oyyF/c+MzYAs6S+sz0NK71nXZE=", "ref": "refs/heads/main", - "rev": "48a024e0322bbd7c4c88126498ec478444ec4cb2", - "revCount": 6763, + "rev": "31d3181e1ee91e338fb4fb8207d64b8d689310fc", + "revCount": 6766, "submodules": true, "type": "git", "url": "https://github.com/hyprwm/Hyprland" @@ -394,6 +394,36 @@ "type": "github" } }, + "hyprland-plugins": { + "inputs": { + "hyprland": [ + "hyprland" + ], + "nixpkgs": [ + "hyprland-plugins", + "hyprland", + "nixpkgs" + ], + "systems": [ + "hyprland-plugins", + "hyprland", + "systems" + ] + }, + "locked": { + "lastModified": 1767304464, + "narHash": "sha256-HsdfmPf5291Y3yXScMoj53P/9SS1DK3KgbprBuR8A4k=", + "owner": "hyprwm", + "repo": "hyprland-plugins", + "rev": "7a8521112361997d071fd1fef06d6becc7e53240", + "type": "github" + }, + "original": { + "owner": "hyprwm", + "repo": "hyprland-plugins", + "type": "github" + } + }, "hyprland-protocols": { "inputs": { "nixpkgs": [ @@ -784,6 +814,7 @@ "elephant": "elephant", "home-manager": "home-manager_2", "hyprland": "hyprland", + "hyprland-plugins": "hyprland-plugins", "hyprsplit": "hyprsplit", "nixovim": "nixovim", "nixpkgs": "nixpkgs_2", diff --git a/flake.nix b/flake.nix index b55c39b..3b8ff41 100644 --- a/flake.nix +++ b/flake.nix @@ -31,6 +31,10 @@ url = "github:shezdy/hyprsplit"; inputs.hyprland.follows = "hyprland"; }; + hyprland-plugins = { + url = "github:hyprwm/hyprland-plugins"; + inputs.hyprland.follows = "hyprland"; + }; nixovim = { # FIXME: treesitter does not install automatically (disabled due to read-only problems) url = "git+https://git.sakamoto.dev/kenji/nixovim.git";