diff --git a/hosts/pinwheel/modules/hyprland/default.nix b/hosts/pinwheel/modules/hyprland/default.nix index 2df46c5..532d971 100644 --- a/hosts/pinwheel/modules/hyprland/default.nix +++ b/hosts/pinwheel/modules/hyprland/default.nix @@ -386,25 +386,24 @@ in (lib.generators.mkLuaInline ''hl.dsp.exec_cmd("${magnifier} --reset")'') ]; } - ]; - bindm = [ - # mouse movements - { - _args = [ - "${mod} + mouse:272" # left click - (lib.generators.mkLuaInline "hl.dsp.window.drag()") - { mouse = true; } - ]; - } - { - _args = [ - "${mod} + mouse:273" # right click - (lib.generators.mkLuaInline "hl.dsp.window.resize()") - { mouse = true; } - ]; - } - ]; + # mouse movements: hyprland's lua API has no separate `bindm`, + # mouse binds are plain `hl.bind` with `{ mouse = true }`. + { + _args = [ + "${mod} + mouse:272" # left click + (lib.generators.mkLuaInline "hl.dsp.window.drag()") + { mouse = true; } + ]; + } + { + _args = [ + "${mod} + mouse:273" # right click + (lib.generators.mkLuaInline "hl.dsp.window.resize()") + { mouse = true; } + ]; + } + ]; }; };