From ea60780eef62151a75f98c42ff238e05eea5efd0 Mon Sep 17 00:00:00 2001 From: elwrcl Date: Sun, 19 Apr 2026 23:46:36 +0300 Subject: [PATCH] update hyprplugins Signed-off-by: elwrcl --- flake.nix | 5 +++++ home/hypr/hyprland/general.nix | 11 +++++------ home/hypr/hyprland/keybinds.nix | 22 +++++++++++----------- home/hyprland.nix | 6 +++--- 4 files changed, 24 insertions(+), 20 deletions(-) diff --git a/flake.nix b/flake.nix index 9a593fd..9dc8250 100644 --- a/flake.nix +++ b/flake.nix @@ -7,6 +7,10 @@ zen-browser.url = "github:0xc000022070/zen-browser-flake"; oceanix.url = "github:LEXUGE/oceanix"; copetch.url = "github:elwrcl/copetch"; + hyprland.url = "github:hyprwm/Hyprland"; + hyprland-plugins = { + url = "github:hyprwm/hyprland-plugins"; + inputs.hyprland.follows = "hyprland"; home-manager = { url = "github:nix-community/home-manager"; @@ -67,4 +71,5 @@ }; }; }; +}; } diff --git a/home/hypr/hyprland/general.nix b/home/hypr/hyprland/general.nix index 3530e40..0b81be0 100644 --- a/home/hypr/hyprland/general.nix +++ b/home/hypr/hyprland/general.nix @@ -12,15 +12,14 @@ "col.inactive_border" = "rgba(31313600)"; resize_on_border = true; allow_tearing = true; - layout = "scroller"; + layout = "scrolling"; }; plugin = { - scrolling = { - column_default_width = "one"; - focus_wrap = false; - column_widths = "onehalf one twothirds"; - center_row_first = true; + hyprscrolling = { + column_width = 0.7; + fullscreen_on_one_column = false; + focus_fit_method = 1; }; hyprexpo = { columns = 3; diff --git a/home/hypr/hyprland/keybinds.nix b/home/hypr/hyprland/keybinds.nix index 7424dbe..5979041 100644 --- a/home/hypr/hyprland/keybinds.nix +++ b/home/hypr/hyprland/keybinds.nix @@ -15,9 +15,9 @@ in # workspace "CTRL $mainMod, right, workspace, r+1" "CTRL $mainMod, left, workspace, r-1" - "$mainMod, R, scroller:cyclewidth, next" - "$mainMod, C, scroller:alignwindow, c" - "$mainMod SHIFT, R, scroller:resetheight," + "$mainMod, R, layoutmsg, colresize +conf" + "$mainMod, C, layoutmsg, center" + "$mainMod SHIFT, R, layoutmsg, colresize 0.7" # interface "$mainMod, Tab, hyprexpo:expo, toggle" @@ -46,15 +46,15 @@ in "$mainMod ALT, P, pin" # focus windows - "$mainMod, left, scroller:movefocus, l" - "$mainMod, right, scroller:movefocus, r" - "$mainMod, up, scroller:movefocus, u" - "$mainMod, down, scroller:movefocus, d" + "$mainMod, left, layoutmsg, move -col" + "$mainMod, right, layoutmsg, move +col" + "$mainMod, up, movefocus, u" + "$mainMod, down, movefocus, d" - "$mainMod SHIFT, left, scroller:movewindow, l" - "$mainMod SHIFT, right, scroller:movewindow, r" - "$mainMod SHIFT, up, scroller:movewindow, u" - "$mainMod SHIFT, down, scroller:movewindow, d" + "$mainMod SHIFT, left, layoutmsg, movewindowto l" + "$mainMod SHIFT, right, layoutmsg, movewindowto r" + "$mainMod SHIFT, up, movewindow, u" + "$mainMod SHIFT, down, movewindow, d" # workspace navigation "$mainMod, 1, workspace, 1" diff --git a/home/hyprland.nix b/home/hyprland.nix index 25d20aa..adf01c5 100644 --- a/home/hyprland.nix +++ b/home/hyprland.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: +{ inputs, pkgs, ... }: { imports = [ @@ -10,8 +10,8 @@ xwayland.enable = true; systemd.enable = true; plugins = [ - pkgs.hyprlandPlugins.hyprscrolling - pkgs.hyprlandPlugins.hyprexpo + inputs.hyprland-plugins.packages.${pkgs.stdenv.hostPlatform.system}.hyprscrolling + inputs.hyprland-plugins.packages.${pkgs.stdenv.hostPlatform.system}.hyprexpo ]; }; }