I make things: electronics and software and music and stories and all sorts of other things.

  • 0 Posts
  • 154 Comments
Joined 3 years ago
cake
Cake day: June 14th, 2023

help-circle


  • I freaking love niri

    It’s easy to lose windows that are off-screen

    By default. They should really change the defaults, but in config, you can make it so if there is a window to the side hidden, a piece is always visible.

    It’s called struts.

    layout {
        ...
        struts {
             left 16
             right 16
         }
    }
    

    It ensures a piece of the window is always visible

    Plus with a bar like from QuickShell or WayBar you can see all open windows anyway up there.

    To achieve this, I’ve been using Niri with the tilemod script. It helps make Niri behave more like a regular tiling.

    The things you show in the gif are already possible with niri via Super + [ and Super + ] (default bindings) for placing into columns

    It has limitations, but everything in the gif at least is already there. Niri actually has quite a bit of support for base tiling.

    I can’t go back to non-scrolling ever. I even use a similar setup on my work machine (a Mac) via PaperWM.spoon, tho it isn’t as well integrated (bc it’s a mac and you’re forcing it to not be a mac)

    EDIT: One tiling feature of niri I love is that with Super + W you can switch to a stacked mode like in a tiler. For KiCAD PCB editing, you have three windows - project, schematic, and pcb. It is essential that at the very least the project tab be stacked behind and out of the way imo, since there is no minimize


  • Not sure if it helps, but traditionally the max was 80 columns by 25 rows on old computers, and that became a standard.

    Nowadays we can be much bigger with a terminal emulator window, but 80x25 is still the “standard” and most terminal emulators default to that size when you open their window.

    It’s not the max size possible, but if you’re making software for terminal, that really should be your target size imo






  • Pros:

    • Better UX for system. On Windows and Mac you’re stuck with the old-style window movement desktops which suck and are chaos with lots of effort to maintain when trying to do anything productive. Even with third-party tools it’s nothing like being able to have something like Niri. It’s just better on the Linux world.
    • It actually meets your needs instead of making your change your needs. The customization is insane, but usually you don’t even have to go very far to be happy.
    • No bloat, no forced features like AI (tho you can get your own AI stuff if you want), less privacy concerns, better tools generally

    Microsoft Windows is actually a complete piece of crap

    Unfortunately, cons of switching:

    • Have to use non-standard apps for certain things like office files or DAWs for audio production
      • Tho, these are less bad these days. In fact, some are better like I’ll take Blender over Maya any day, and I use OnlyOffice even on Windows, bc why pay for the “Copilot App” (formerly MS Office) when OnlyOffice is just as good and is fully compatible?
    • Some games don’t work (esp multiplayer), and sometimes for no good reason other than the devs don’t like Linux users, e.g. Bungie.
      • Also far better than it used to be. Very few things I miss out on
    • MacOS clearly has the better app distribution system. A single folder with all necessary deps save a couple core libraries. Simple, effective, can still be put in a store. Instead we have an obsession with sandboxing or overcomplicated packages. AppImages were so close to being right. But nope. We can’t have nice things sometimes

    I’ve been using Linux-only since around 2019 (having used it alongside Windows for gaming before then) when Proton finally started getting good. I’m also an engineer, artist, writer, gamer, musician, maker, and more, so I feel like I have touched a lot of the different ways in which computers are used. I’ve used several distros for extended periods, and my fav is Arch (tho Nix is a close second; it’s just not quite ready for primetime)

    Linux is absolutely a viable alternative, but you have to know what you want from your PC. How do you want it to function? Pick that choice. It’s not ice-cream flavors where all are equal and you have to decide; form follows function here. Decide what you need and then build your own system from that - bc Linux is yours. Refuse to be spoonfed slop no matter if the slop is from Microsoft or from a Linux distro. Slop is slop. Cook your own meal. It tastes better. If you don’t like mushrooms, don’t get mushrooms.






  • You still need X11 or Wayland somehow. I would suggest something that can run in “kiosk” mode. That’s essentially what you want - boot a single app and run that.

    If you don’t care about wayland, just install xorg-xinit (since you said Arch) and put this in ~/.xinitrc: exec steam -bigpicture

    Run startx to launch it on its own. There may be other dependencies you need for steam or for games, but you don’t need a whole DE.

    If you want, you can even enable auto-login and then set up auto-start by adding this to your ~/.bashrc (or whatever shell you use):

    if [[ -z $DISPLAY ]]; then
      startx
    fi
    



  • I’d recommend using something like Niri instead of mutter for the compositor as Niri is:

    • Extremely customizable
    • Meant to be used alone (unlike mutter which is for Gnome)
    • Supportive of Wayland portals better than any compositor I’ve tried
    • Very modern
    • Pretty stable
    • Making use of scrolling window management which is, imo, superior to anything else
      • You could force all windows to be floating if you want that traditional method tho

    I’d also recommend using DankMaterialShell and simply providing a theming to get the appeal you want. It works well with Niri and provides all the system tools you need for an OS like bluetooth and audio management, application lookup, etc. It’s sort of a stripped down Gnome-shell for standalone compositors but way more customizable.

    Then everything else can just be installed WINE apps.



  • I like Ardour. It’s got everything you need. It’s what I’ve been using for the past couple years now. It even supports VST2/VST3 plugins through WINE

    I also recommend using yabridge to set up Windows plugins to work on Linux, but be warned there is risk of compatibility issues with plugins on Linux when buying new ones!

    EDIT - Resources:

    Wait a little while and low key Audacity 4 might release a fully capable DAW as well now that it’s adding better clip support, plugin support, non-destructive editing for some effects like compression, reverb, etc. Of course, it will be mainly for if you do a lot of recording. For electronic, Ardour would probably be better even after Audacity 4 releases.


  • As others said, it means nullable, but to put it in more intuitive, less-jargony way - it’s a question mark bc you don’t know if the value is actually there or not. It could be a Singleton, but it isn’t until you check if there is a value. Whereas if you have, idk, int a no question mark, then you’re saying you actually have data.

    Essentially with C# 8, they “removed” null and reused the idea of null references in creating what is essentially an Option like in other languages. You either have some data of some type, or none (a null reference, in this case). By default, everything has to be there. Then when you need null, e.g. you may not have something initialized or an operation could fail, you explicitly grab for it. Thus it reduces null pointer bugs. If you don’t need nullability, you can ensure that you don’t accidentally write in an issue. It safety checks statements and parameters.