KZDKM / Hyprspace

Workspace overview plugin for Hyprland
GNU General Public License v2.0
285 stars 9 forks source link

Can't move mouse between monitors #10

Closed wikiker closed 1 month ago

wikiker commented 1 month ago

When moving mouse cursor, I cannot move from one monitor to the other. But while moving with a window near the first monitor border, I can see part of the windows on the second one (so their positioning is working correctly).

Currently I don't use any keybindings for switching active monitors / switching workspaces, so I'm stuck with the primary monitor.

My nix config file:

wayland.windowManager.hyprland = {
        enable = true;
        package = inputs.hyprland.packages.${pkgs.system}.hyprland;
        xwayland.enable = true;
        systemd.enable = true;

        settings = {
            # Startup
            exec-once = [
                "waybar"
                "hyprpaper"
                "wl-paste --watch cliphist store"
            ];

            "$terminal" = "alacritty";

            # Keybindings
            "$mod" = "SUPER";

            bind = [
                "$mod, I, exec, $terminal"
                "$mod, M, exit"
                "$mod, Q, killactive"
                "$mod, SPACE, exec, wofi --show=drun"
                "$mod, mouse:274, togglefloating, active"
                "$mod, mouse_down, workspace, e-1"
                "$mod, mouse_up, workspace, e+1"
                "$mod, V, exec, ${clipboard_wofi}"

                "$mod, Up, overview:open"
                "$mod, Down, overview:close"
            ];
            bindm = [
                "$mod, mouse:272, movewindow"
                "$mod, mouse:273, resizewindow"
            ];

            # Keymap
            input.kb_layout = "cz";

            # Mouse
            input.follow_mouse = 2;
            general.resize_on_border = true;

            # Enable NumLock
            input.numlock_by_default = true;

            # Monitors
            monitor = [
                "DP-1,     highres, 0x0,    0.9"
                "HDMI-A-2, highres, 2135x0, 0.9"
            ];

            #Layout
            dwindle = {
                force_split = 2; # Tile new window to right or bottom
                smart_split = true;
            };

            misc = {
                disable_hyprland_logo = true;
                disable_splash_rendering = true;
                disable_autoreload = true;  #Autoreload not needed when config managed by nix
            };
        };

        plugins = [
            inputs.Hyprspace.packages.${pkgs.system}.Hyprspace
        ];
    };
wikiker commented 1 month ago

My bad, when updating Hyprland to match with Hyprspace, it somehow broke fractional scaling. For anyone having the same issue, I found this helpful: https://github.com/hyprwm/Hyprland/discussions/5492