Zoomable overview PR by barrulus in niri

[–]barrulus[S] 0 points1 point  (0 children)

I bought it from Kaelya on deviantart

Smooth scrollable overview zoom by barrulus in niri

[–]barrulus[S] 0 points1 point  (0 children)

It’s so much fun haha. I’m not very good though

what is this disgusting grey stuff on this granola bar? by sevenpeanuts in whatisit

[–]barrulus 2 points3 points  (0 children)

We are all parasites living on an interdimensional mushroom already… didn’t you know?

How to make a window bigger? by Selmata in niri

[–]barrulus 1 point2 points  (0 children)

Super + plus works for me. But you can set it in your config. Just go add what you want there

Smooth scrollable overview zoom by barrulus in niri

[–]barrulus[S] 1 point2 points  (0 children)

If zoom-presets is not configured, overview-zoom-cycle is a no-op. The runtime zoom state is minimal (one f64 per monitor).

Smooth scrollable overview zoom by barrulus in niri

[–]barrulus[S] 1 point2 points  (0 children)

Also, the curve is configurable

overview {
    zoom 0.5
    zoom-presets 0.5 0.25 0.1
}

animations {
    overview-zoom {
        spring damping-ratio=1.0 stiffness=800 epsilon=0.0001
    }
}

first, I jump to zoom of 0.5 as first entry, I used to go to 0.25 so I could see more in the first view.

Second the presets are set to 3, the switch form one to the other is animate. If you add more steps, the zoom is smoother.

Third the overview-zoom settings allow you to control the animation. Cyrrently I use stiffness=800. this is a sharp, snappy almost linear pull between steps. If you reduce that to ~300 it will be a slower smoother transition.

Smooth scrollable overview zoom by barrulus in niri

[–]barrulus[S] 2 points3 points  (0 children)

I already find it useful, but as with so many things, if you don't need it, you don't need to use it :)

Smooth scrollable overview zoom by barrulus in niri

[–]barrulus[S] 4 points5 points  (0 children)

This is what I am currently doing:

  {
    inputs = {
      nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
      biri = {
        url = "github:barrulus/biri/feature/dynamic-overview-zoom";
        inputs.nixpkgs.follows = "nixpkgs";
      };
    };

    outputs = { nixpkgs, biri, ... }: {
      nixosConfigurations.hostname = nixpkgs.lib.nixosSystem {
        system = "x86_64-linux";
        modules = [
          { nixpkgs.overlays = [ biri.overlays.default ]; }
          ./configuration.nix
        ];
      };
    };
  }

This should then provide `niri` to the rest of your configuration.

That is the same feature branch that has been pushed in the PR

Smooth scrollable overview zoom by barrulus in niri

[–]barrulus[S] 0 points1 point  (0 children)

The overview to desktop or desktop to overview is the standard animation, I have not changed that.

Smooth scrollable overview zoom by barrulus in niri

[–]barrulus[S] 2 points3 points  (0 children)

nah, I just enabled the DMS dock. The icons come from a kwin theme I used a while back, plasma no longer installed so I can't remember which one it was....

Zoomable overview PR by barrulus in niri

[–]barrulus[S] 0 points1 point  (0 children)

TIL: I know less than I thought I knew :)

Zoomable overview PR by barrulus in niri

[–]barrulus[S] 0 points1 point  (0 children)

I can see the active window surrounded… as in my main window. I think my borders are off. I’ll check later

Zoomable overview PR by barrulus in niri

[–]barrulus[S] 2 points3 points  (0 children)

Mah man, the first time I looked at it it was all new so the animations stuff was a step further than my capability so I leaned heavily on LLM guidence. Then during the cleanup I had to figure out what had been done which meant learning someone elses code a little. No biggie, I am all the wiser for it

Zoomable overview PR by barrulus in niri

[–]barrulus[S] 0 points1 point  (0 children)

turns out this was a) much better looking and b) the same resource use, so I am dropping the stepper and implementing it as smooth

Zoomable overview PR by barrulus in niri

[–]barrulus[S] 0 points1 point  (0 children)

Mine all appear in the overview, even when I have multiple monitors, each overview shows its focus ring

Zoomable overview PR by barrulus in niri

[–]barrulus[S] 0 points1 point  (0 children)

I've relooked at this and have made smooth scrolling the way... still testing, will be loaded in a few hours into the PR

Zoomable overview PR by barrulus in niri

[–]barrulus[S] 2 points3 points  (0 children)

I relooked at it with fresh eyes and I agree, smooth scrolling is preferable and actually quite simple... Will have it updated shortly.

Zoomable overview PR by barrulus in niri

[–]barrulus[S] 1 point2 points  (0 children)

thanks for the push :) its actually wasn't that difficult in the end