From 11366052f929f8ddeb54b719e44fb631bf759182 Mon Sep 17 00:00:00 2001 From: mrfluffy-dev Date: Wed, 25 Jun 2025 10:33:58 +0100 Subject: [PATCH] feat: hyperland scrolling layout --- dots/hyprland.nix | 25 ++++++++++++++++++++----- home/services.nix | 3 ++- 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/dots/hyprland.nix b/dots/hyprland.nix index 07520b9..4a95a13 100755 --- a/dots/hyprland.nix +++ b/dots/hyprland.nix @@ -21,6 +21,7 @@ in enable = window_manager == "hyprland" || window_manager == "all"; plugins = [ pkgs.hyprlandPlugins.hyprsplit + pkgs.hyprlandPlugins.hyprscrolling ]; settings = { @@ -52,6 +53,17 @@ in num_workspaces = 10; persistent_workspaces = true; }; + hyprscrolling = { + fullscreen_on_one_column = false; + column_width = 0.7; + explicit_column_widths = [ + 0.333 + 0.5 + 0.667 + 1.0 + ]; + focus_fit_method = 0; + }; }; env = [ @@ -171,9 +183,10 @@ in }; }; # https://wiki.hyprland.org/Configuring/Variables/#gestures - gestures = { - workspace_swipe = true; - }; + #gestures = { + # workspace_swipe = true; + # workspace_swipe_cancel_ratio = 0.15; + #}; # Example per-device config # See https://wiki.hyprland.org/Configuring/Keywords/#per-device-input-configs for more @@ -195,12 +208,14 @@ in ",Print, exec, grim -g \"$(slurp)\" - | swappy -f -" "${mod}, P, pseudo, " # dwindle #focus with mainMod + arrow keys - "${mod}, H, movefocus, l" - "${mod}, L, movefocus, r" + #"${mod}, H, movefocus, l" + #"${mod}, L, movefocus, r" "${mod}, K, movefocus, u" "${mod}, J, movefocus, d" "${mod} SHIFT, H, movewindow, l" + "${mod}, h, layoutmsg, move -col" "${mod} SHIFT, L, movewindow, r" + "${mod}, L, layoutmsg, move +col" "${mod} SHIFT, K, movewindow, u" "${mod} SHIFT, J, movewindow, d" diff --git a/home/services.nix b/home/services.nix index afba22b..40928f6 100644 --- a/home/services.nix +++ b/home/services.nix @@ -3,13 +3,14 @@ lib, pkgs, inputs, + window_manager, ... }: let quickshellPackage = inputs.quickshell.packages.${pkgs.system}.default; in { - systemd.user.services.quickshell = { + systemd.user.services.quickshell = lib.mkIf (window_manager == "hyprland") { Unit = { Description = "QuickShell Application"; After = [ "graphical-session.target" ];