diff --git a/modules/home/hyprland/settings.nix b/modules/home/hyprland/settings.nix index c347a35..f9bc9af 100644 --- a/modules/home/hyprland/settings.nix +++ b/modules/home/hyprland/settings.nix @@ -3,13 +3,13 @@ let cfg = config.wayland.windowManager.hyprland; - nonFloatingClasses = [ + nonCenterFloatingClasses = [ "Gimp" "steam" "KiCad" ]; - nonFloatingClassesRegex = concatStringsSep "|" nonFloatingClasses; + nonCenterFloatingClassesRegex = concatStringsSep "|" nonCenterFloatingClasses; inherit (builtins) concatStringsSep toString; inherit (lib) mkDefault; @@ -25,8 +25,8 @@ in # 1: see Hyprland NixOS module windowrule = [ - # "float, class:^(${nonFloatingClassesRegex})$" - "center, floating:1, class:^(?!.*(${nonFloatingClassesRegex})).*$" + # "float, class:^(${nonCenterFloatingClassesRegex})$" + "center, floating:1, class:^(?!.*(${nonCenterFloatingClassesRegex})).*$" "float, title:^(Open|Save) Files?$" "noborder, onworkspace:w[t1]" "bordersize ${toString cfg.settings.general.border_size}, floating:1" @@ -39,6 +39,12 @@ in "noblur, class:^(xwaylandvideobridge)$" ]; + gesture = [ + "3, horizontal, workspace" + "3, up, dispatcher, exec, bemenu-run" # TODO: move to hyprland.applications + "4, swipe, move" + ]; + # Layouts general.layout = mkDefault "master"; master = {