From d718a3ed5707a1e92029a191778925b5c28276aa Mon Sep 17 00:00:00 2001 From: Charlie Root Date: Wed, 26 Feb 2025 21:54:48 +0100 Subject: [PATCH] hyprland: finally working hy3 thanks a lot @outfoxxed <3 --- modules/wms/wayland/hyprland/binds.nix | 21 +++++++++++++-------- modules/wms/wayland/hyprland/module.nix | 3 ++- modules/wms/wayland/hyprland/settings.nix | 5 ++++- 3 files changed, 19 insertions(+), 10 deletions(-) diff --git a/modules/wms/wayland/hyprland/binds.nix b/modules/wms/wayland/hyprland/binds.nix index 799bae6..553e9e4 100644 --- a/modules/wms/wayland/hyprland/binds.nix +++ b/modules/wms/wayland/hyprland/binds.nix @@ -54,16 +54,21 @@ in { binde = [ # window focus - "$mainMod, H, movefocus, l" - "$mainMod, J, movefocus, d" - "$mainMod, K, movefocus, u" - "$mainMod, L, movefocus, r" + "$mainMod, H, hy3:movefocus, l" + "$mainMod, J, hy3:movefocus, d" + "$mainMod, K, hy3:movefocus, u" + "$mainMod, L, hy3:movefocus, r" # Move Windows - "$mainMod SHIFT, H, movewindow, l" - "$mainMod SHIFT, J, movewindow, d" - "$mainMod SHIFT, K, movewindow, u" - "$mainMod SHIFT, L, movewindow, r" + "$mainMod SHIFT, H, hy3:movewindow, l" + "$mainMod SHIFT, J, hy3:movewindow, d" + "$mainMod SHIFT, K, hy3:movewindow, u" + "$mainMod SHIFT, L, hy3:movewindow, r" + + + "$mainMod, T, hy3:makegroup, tab" + "$mainMod, Z, hy3:makegroup, h" + "$mainMod, A, hy3:makegroup, v" ]; # Media controls diff --git a/modules/wms/wayland/hyprland/module.nix b/modules/wms/wayland/hyprland/module.nix index 1707eff..b547c40 100644 --- a/modules/wms/wayland/hyprland/module.nix +++ b/modules/wms/wayland/hyprland/module.nix @@ -27,7 +27,8 @@ in { portalPackage = pkgs.xdg-desktop-portal-hyprland; plugins = [ pkgs.hyprlandPlugins.hyprsplit - # pkgs.hyprlandPlugins.hypr-dynamic-cursors + pkgs.hyprlandPlugins.hy3 + pkgs.hyprlandPlugins.hypr-dynamic-cursors ]; }; # xdg Portal diff --git a/modules/wms/wayland/hyprland/settings.nix b/modules/wms/wayland/hyprland/settings.nix index 7d19a24..2cb74a8 100644 --- a/modules/wms/wayland/hyprland/settings.nix +++ b/modules/wms/wayland/hyprland/settings.nix @@ -47,7 +47,7 @@ in { }; general = { - layout = "dwindle"; + layout = "hy3"; gaps_in = 0; gaps_out = 0; border_size = 2; @@ -60,6 +60,9 @@ in { hyprsplit = { num_workspaces = 10; persistent_workspaces = true; + }; + hy3 = { + }; dynamic-cursors = { enabled = true;