From de8de47de44a6bb11c7721a27690cdd8fbf116e4 Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Mon, 25 Nov 2024 09:59:45 +0100 Subject: [PATCH] move hyprspace to file --- home/system/hyprland/default.nix | 11 ++++++----- home/system/hyprland/hyprspace.nix | 7 +++++++ 2 files changed, 13 insertions(+), 5 deletions(-) create mode 100644 home/system/hyprland/hyprspace.nix diff --git a/home/system/hyprland/default.nix b/home/system/hyprland/default.nix index 10c198b..939186c 100644 --- a/home/system/hyprland/default.nix +++ b/home/system/hyprland/default.nix @@ -11,7 +11,12 @@ let keyboardLayout = config.var.keyboardLayout; in { - imports = [ ./animations.nix ./bindings.nix ./polkitagent.nix ]; + imports = [ + ./animations.nix + ./bindings.nix + ./polkitagent.nix + # ./hyprspace.nix + ]; home.packages = with pkgs; [ qt5.qtwayland @@ -42,8 +47,6 @@ in { systemd.enable = true; package = inputs.hyprland.packages."${pkgs.system}".hyprland; - plugins = [ inputs.hyprspace.packages.${pkgs.system}.Hyprspace ]; - settings = { "$mod" = "SUPER"; "$shiftMod" = "SUPER_SHIFT"; @@ -53,8 +56,6 @@ in { "dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CURRENT_DESKTOP" ]; - plugin = { overview = { autoDrag = false; }; }; - monitor = [ "eDP-2,highres,0x0,1" "DP-7, disable" diff --git a/home/system/hyprland/hyprspace.nix b/home/system/hyprland/hyprspace.nix new file mode 100644 index 0000000..29ca6a6 --- /dev/null +++ b/home/system/hyprland/hyprspace.nix @@ -0,0 +1,7 @@ +{ inputs, pkgs, ... }: { + + wayland.windowManager.hyprland = { + plugins = [ inputs.hyprspace.packages.${pkgs.system}.Hyprspace ]; + settings = { plugin = { overview = { autoDrag = false; }; }; }; + }; +}