Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

NodeBB

  1. Home
  2. uncategorized
  3. Decided to try writing a Wayland compositor for fun.

Decided to try writing a Wayland compositor for fun.

Scheduled Pinned Locked Moved uncategorized
158 Posts 1 Posters 1 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ? Guest

    I'm working on an "event stream" IPC for niri where you get notified about events as they happen. For example, "workspace switched" or "keyboard layout changed".

    To give it a good test, I actually started implementing native niri support in Waybar. You can give it a try too: https://github.com/YaLTeR/niri/pull/453#issuecomment-2317110904

    #niri

    ? Offline
    ? Offline
    Guest
    wrote on last edited by
    #78

    I finished the initial event stream IPC implementation for niri. My Waybar fork implements a decent amount of the modules niri/workspaces, niri/window, niri/language. Please give that a try, also anyone who makes IPC scripts or bars please give a try to the event stream IPC itself so we can find any design flaws before merging.

    The PR you will need: https://github.com/YaLTeR/niri/pull/453#issuecomment-2321730996

    Waybar fork is linked from there.

    #niri

    ? 1 Reply Last reply
    0
    • ? Guest

      I finished the initial event stream IPC implementation for niri. My Waybar fork implements a decent amount of the modules niri/workspaces, niri/window, niri/language. Please give that a try, also anyone who makes IPC scripts or bars please give a try to the event stream IPC itself so we can find any design flaws before merging.

      The PR you will need: https://github.com/YaLTeR/niri/pull/453#issuecomment-2321730996

      Waybar fork is linked from there.

      #niri

      ? Offline
      ? Offline
      Guest
      wrote on last edited by
      #79

      The other day, Christian Meissl finished updating and publishing the libdisplay-info bindingsΒ [1]. This is quite exciting because, unlike edid-rs, it can parse the manufacturer/model/serial from pretty much any monitor.

      So, today I spend a few hours integrating the manufacturer/model/serial monitor addressing all throughout niri: config, IPC, niri msg, screencast output selector. You should now be able to write/use "SomeCompany CoolMonitor 1234" everywhere!

      [1]: https://lib.rs/crates/libdisplay-info

      #niri

      ? 1 Reply Last reply
      0
      • ? Guest

        The other day, Christian Meissl finished updating and publishing the libdisplay-info bindingsΒ [1]. This is quite exciting because, unlike edid-rs, it can parse the manufacturer/model/serial from pretty much any monitor.

        So, today I spend a few hours integrating the manufacturer/model/serial monitor addressing all throughout niri: config, IPC, niri msg, screencast output selector. You should now be able to write/use "SomeCompany CoolMonitor 1234" everywhere!

        [1]: https://lib.rs/crates/libdisplay-info

        #niri

        ? Offline
        ? Offline
        Guest
        wrote on last edited by
        #80

        Set up CI rustdoc publishing for niri-ipc: https://yalter.github.io/niri/niri_ipc/

        This has the entirety of the niri IPC documented, including the new event stream events.

        #niri

        ? 1 Reply Last reply
        0
        • ? Guest

          Set up CI rustdoc publishing for niri-ipc: https://yalter.github.io/niri/niri_ipc/

          This has the entirety of the niri IPC documented, including the new event stream events.

          #niri

          ? Offline
          ? Offline
          Guest
          wrote on last edited by
          #81

          After the Waybar maintainer speedran merging my niri modules and releasing, I would feel bad delaying any longer, so here's niri 0.1.9 πŸ™‚

          Event stream IPC for bars, better window resizing, properly named outputs, on-demand VRR, out-of-the-box fix for NVIDIA flickering, and other improvements!

          https://github.com/YaLTeR/niri/releases/tag/v0.1.9

          #niri #smithay #wayland #rust

          ? 1 Reply Last reply
          0
          • ? Guest

            After the Waybar maintainer speedran merging my niri modules and releasing, I would feel bad delaying any longer, so here's niri 0.1.9 πŸ™‚

            Event stream IPC for bars, better window resizing, properly named outputs, on-demand VRR, out-of-the-box fix for NVIDIA flickering, and other improvements!

            https://github.com/YaLTeR/niri/releases/tag/v0.1.9

            #niri #smithay #wayland #rust

            ? Offline
            ? Offline
            Guest
            wrote on last edited by
            #82

            wtf did I Just Make

            ? 1 Reply Last reply
            0
            • ? Guest

              wtf did I Just Make

              ? Offline
              ? Offline
              Guest
              wrote on last edited by
              #83

              Over the past 2 weeks I've been slowly but surely working on the interactive move niri PR [1] by @pajn. It's already got me to fix quite a bit of tech debt in the layout code, which is cool.

              The PR is still rough around the edges, but mostly works, and I switched to running the branch on my own systems to give it thorough testing.

              (also no, this is not the Floating Layer yet, though it's a good step towards that)

              Attaching a video of what it looks like rn

              [1]: https://github.com/YaLTeR/niri/pull/547

              #niri

              ? 1 Reply Last reply
              0
              • ? Guest

                Over the past 2 weeks I've been slowly but surely working on the interactive move niri PR [1] by @pajn. It's already got me to fix quite a bit of tech debt in the layout code, which is cool.

                The PR is still rough around the edges, but mostly works, and I switched to running the branch on my own systems to give it thorough testing.

                (also no, this is not the Floating Layer yet, though it's a good step towards that)

                Attaching a video of what it looks like rn

                [1]: https://github.com/YaLTeR/niri/pull/547

                #niri

                ? Offline
                ? Offline
                Guest
                wrote on last edited by
                #84

                Made interactive move work on touch (and resize too while I was at it), didn't need that many changes actually

                #niri

                ? 1 Reply Last reply
                0
                • ? Guest

                  Made interactive move work on touch (and resize too while I was at it), didn't need that many changes actually

                  #niri

                  ? Offline
                  ? Offline
                  Guest
                  wrote on last edited by
                  #85

                  Added a bit of rubberbanding before the window is "dragged out" of the layout. Should help avoid unintended layout changes.

                  Along with a few more fixes I did, I think interactive move should be good to merge? It's not 100% perfect and jank free, but I'm fairly sure I got all the important things done. Will give it some more testing.

                  #niri

                  ? 1 Reply Last reply
                  0
                  • ? Guest

                    Added a bit of rubberbanding before the window is "dragged out" of the layout. Should help avoid unintended layout changes.

                    Along with a few more fixes I did, I think interactive move should be good to merge? It's not 100% perfect and jank free, but I'm fairly sure I got all the important things done. Will give it some more testing.

                    #niri

                    ? Offline
                    ? Offline
                    Guest
                    wrote on last edited by
                    #86

                    Suddenly, @drakulix showcasing the Cosmic session running on, among other compositors, niri! On the big screen at the Ubuntu Summit πŸ˜„

                    https://github.com/Drakulix/cosmic-ext-extra-sessions

                    #niri

                    ? 1 Reply Last reply
                    0
                    • ? Guest

                      Suddenly, @drakulix showcasing the Cosmic session running on, among other compositors, niri! On the big screen at the Ubuntu Summit πŸ˜„

                      https://github.com/Drakulix/cosmic-ext-extra-sessions

                      #niri

                      ? Offline
                      ? Offline
                      Guest
                      wrote on last edited by
                      #87

                      somehow this touch moving under stationary pointer works better than i expected

                      (yes trying to do a precise left click with an elbow was difficult)

                      ? 1 Reply Last reply
                      0
                      • ? Guest

                        somehow this touch moving under stationary pointer works better than i expected

                        (yes trying to do a precise left click with an elbow was difficult)

                        ? Offline
                        ? Offline
                        Guest
                        wrote on last edited by
                        #88

                        By the way! I'll be giving a talk at RustCon in Moscow on December, 6!

                        https://rustcon.ru/

                        Wherein I will briefly describe what a Wayland compositor is, and then show several testing and profiling workflows that I've been using to keep niri stable, robust and performant.

                        (The invitation to submit a talk was completely unexpected, guess niri found its way into the right eyes. πŸ˜…)

                        There will be a recording, though in Russian.

                        #rust #niri

                        ? 1 Reply Last reply
                        0
                        • ? Guest

                          By the way! I'll be giving a talk at RustCon in Moscow on December, 6!

                          https://rustcon.ru/

                          Wherein I will briefly describe what a Wayland compositor is, and then show several testing and profiling workflows that I've been using to keep niri stable, robust and performant.

                          (The invitation to submit a talk was completely unexpected, guess niri found its way into the right eyes. πŸ˜…)

                          There will be a recording, though in Russian.

                          #rust #niri

                          ? Offline
                          ? Offline
                          Guest
                          wrote on last edited by
                          #89

                          Interactive window moving, laptop lid and tablet mode switch binds, mouse and touchpad scroll speed setting in today's niri v0.1.10 release!

                          https://github.com/YaLTeR/niri/releases/tag/v0.1.10

                          Also, niri-ipc is now on crates.io, but keep in mind that it will not be Rust-semver-stable: https://crates.io/crates/niri-ipc

                          #wayland #smithay #rust #niri

                          ? 1 Reply Last reply
                          0
                          • ? Guest

                            Interactive window moving, laptop lid and tablet mode switch binds, mouse and touchpad scroll speed setting in today's niri v0.1.10 release!

                            https://github.com/YaLTeR/niri/releases/tag/v0.1.10

                            Also, niri-ipc is now on crates.io, but keep in mind that it will not be Rust-semver-stable: https://crates.io/crates/niri-ipc

                            #wayland #smithay #rust #niri

                            ? Offline
                            ? Offline
                            Guest
                            wrote on last edited by
                            #90

                            Added scaffolding for layer rules, along with a block-out-from rule. Now you can finally block notifications from screencasts!

                            Though, layer-shell surfaces don't have a "geometry" so if they have shadows or transparent padding, all of that becomes solid black, since niri has no way to know where the "actual content" of the layer surface is (that's what geometry is for windows).

                            #niri

                            ? 1 Reply Last reply
                            0
                            • ? Guest

                              Added scaffolding for layer rules, along with a block-out-from rule. Now you can finally block notifications from screencasts!

                              Though, layer-shell surfaces don't have a "geometry" so if they have shadows or transparent padding, all of that becomes solid black, since niri has no way to know where the "actual content" of the layer surface is (that's what geometry is for windows).

                              #niri

                              ? Offline
                              ? Offline
                              Guest
                              wrote on last edited by
                              #91

                              We hit 4000 stars today on the niri repo!!

                              #niri

                              ? 1 Reply Last reply
                              0
                              • ? Guest

                                We hit 4000 stars today on the niri repo!!

                                #niri

                                ? Offline
                                ? Offline
                                Guest
                                wrote on last edited by
                                #92

                                Thanks to Christian Meissl's fix in Smithay, the git version of niri correctly shows nested pop-up menus in lxqt-panel. They also submitted a fix for invalid pop-up spawning to ironbar, which makes it work on Smithay compositors.

                                #niri #lxqt

                                ? 1 Reply Last reply
                                0
                                • ? Guest

                                  Thanks to Christian Meissl's fix in Smithay, the git version of niri correctly shows nested pop-up menus in lxqt-panel. They also submitted a fix for invalid pop-up spawning to ironbar, which makes it work on Smithay compositors.

                                  #niri #lxqt

                                  ? Offline
                                  ? Offline
                                  Guest
                                  wrote on last edited by
                                  #93

                                  Somehow, a small change for tests escalated into trying to completely refactor how animation timing works in niri. And right now I find myself at the exact opposite of this picture. Unfortunately, time has not stopped and is causing problems

                                  ? 1 Reply Last reply
                                  0
                                  • ? Guest

                                    Somehow, a small change for tests escalated into trying to completely refactor how animation timing works in niri. And right now I find myself at the exact opposite of this picture. Unfortunately, time has not stopped and is causing problems

                                    ? Offline
                                    ? Offline
                                    Guest
                                    wrote on last edited by
                                    #94

                                    Like three complete refactors later, I think it's... working? For real this time? No weird issue is gonna sneak up that undermines the whole design?

                                    ? 1 Reply Last reply
                                    0
                                    • ? Guest

                                      Like three complete refactors later, I think it's... working? For real this time? No weird issue is gonna sneak up that undermines the whole design?

                                      ? Offline
                                      ? Offline
                                      Guest
                                      wrote on last edited by
                                      #95

                                      Nothing seems to have caught on fire after one more day of personal testing and one more day in main. So here's a technical page I wrote about the the new niri animation timing design and its motivations: https://github.com/YaLTeR/niri/wiki/Animation-Timing

                                      ? 1 Reply Last reply
                                      0
                                      • ? Guest

                                        Nothing seems to have caught on fire after one more day of personal testing and one more day in main. So here's a technical page I wrote about the the new niri animation timing design and its motivations: https://github.com/YaLTeR/niri/wiki/Animation-Timing

                                        ? Offline
                                        ? Offline
                                        Guest
                                        wrote on last edited by
                                        #96

                                        Today I merged a PR by FluxTape which adds "always empty workspace before first" to niri. At the surface this is just a simple config flag with obvious behavior, but it's actually full of edge cases! Things like which workspace to focus at startup. The code refers to workspaces by index in many places, and those all shift when you suddenly insert an empty workspace at index 0.

                                        Took several days to catch them all even with our randomized tests, but I think it should be good now.

                                        #niri

                                        ? 1 Reply Last reply
                                        0
                                        • ? Guest

                                          Today I merged a PR by FluxTape which adds "always empty workspace before first" to niri. At the surface this is just a simple config flag with obvious behavior, but it's actually full of edge cases! Things like which workspace to focus at startup. The code refers to workspaces by index in many places, and those all shift when you suddenly insert an empty workspace at index 0.

                                          Took several days to catch them all even with our randomized tests, but I think it should be good now.

                                          #niri

                                          ? Offline
                                          ? Offline
                                          Guest
                                          wrote on last edited by
                                          #97

                                          >did a +4,657 βˆ’4,237 refactor in the layout code
                                          >while testing, already found two uncaught regressions introduced in previous niri releases, and no issues with the refactor

                                          ? 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Login or register to search.
                                          Powered by NodeBB Contributors
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups