Hello Everyone,

as you can see on my screenshot, i am using an intel based mac for years now, which i customized to my needs. However i have reached the limits of this machine in terms of customization options and would like to move to linux to test it out as a daily driver. I’m actually quite happy with mac from the pov that everything just works, however there are certain things that annoy me, but apple does not allow me to change them.

As a newbie in terms of desktop linux (i’ve used ubuntu roughly 12 years ago as a daily driver and am familar with headless linux), i’d like your advice.

Specifically I am looking for:

  • a minimal, fast system
  • keyboard / shortcut based - all interactions can be done from keyboard (within common sense limits)
  • all keys can be custom mapped (i have muscle memory of my custom keys for certain actions, so i’d like to keep them)
  • all can be configured from dotfiles (worse case shell scripts and ansible)
  • very low ressource consumption, snappy system with no delays.

I’d like to try NixOs due to it’s unique configuration ability, however on a headless server it was a buggy pain just weeks ago (for example user passwords just vanished/changed without any external influence, not allowing access anymore), so i’m open to alternatives.

What i am looking for in advice is:

  • a minimal, configurable (file based for git) tiling window manager
  • a top status bar like you see in the screenshot that i can freely configure
  • as much terminal emulator based as possible (i honestly mostly only need a browser and the terminal, most other apps have a TUI that i can use with the keyboard, see the above requirement)
  • terminal based package management as easy as brew (maybe Nix?)
  • custom keyboard layout (I am not a native english speaker, so i mapped all non-english characters to my option keys with the english layout as the base)
  • Option to use 2 keyboards at once (come by default when using Karabiner Elements) as i combined 2 small keyboards to one to a fake split keyboard ;)

My current stack on macos is Hammerspoon for heavy customization, Karabiner Elements, yabai, kitty (and alacritty, for ssh, as kitty is bad with ssh in my personal experience), sketchybar. firefox (customized for privacy)

Any good recommendations or dotfiles? Anything i should look out for as a MacOs User?

Thanks in advance!

  •  storm_koala   ( @storm_koala@beehaw.org ) 
    link
    fedilink
    English
    15
    edit-2
    1 year ago

    Hello,

    I advise you to select a WM based on Wayland because it now reached a sufficient maturity and Xorg can safely be remembered as historical. I personally use sway which is an implementation of i3wm for wayland. You will have an experience similar to what appears in your screenshot.

    There are a lot of status bars for sway. I am using swaybar with i3status for the status_command. Don’t hesitate to check the alternatives, they are amazing.

    All the configuration of sway happens in a config file and you can setup your keyboard preference inside. You can setup multiple layouts at the same time and specify which key binding to switch between them.

    If you decide to give NixOS another try (which it deserves), the nixos config already has options to enable sway.

    For the package manager, either stick with the one integrated in the distribution you choose (apt, pacman, dnf, …) or indeed use nix on top if you like the experience and its benefits.

    And as a general advise, don’t hesitate to first try your choices in a VM installation, and take your time to check if it really suits your need.

    Have fun

  • I like NixOS and haven’t had any struggles with it. For my tiling I use Hyprland, as it’s Wayland and looks very nice. For a bar with amazing configuration I can recommend either https://github.com/elkowar/eww or https://github.com/aylur/ags - in the first one you configure it in a lisp-like language, the second one is configured in JS. They both allow you to pretty much write any GTK widgets for your bar, and are really powerful, but ags is newer and allows for more advanced functionality.

    My favorite terminal emulator is foot - it’s simple and quick.

    I wouldn’t say Nix is easy at the beginning as you have to learn a language to use it properly, but it’s definitely worth it long-term.

    There shouldn’t be any issues with 2 keyboards and custom layouts on Linux. If anything you could use something like hawck to rebind the keys (system-wide) to something else.

    • I run NixOS on my macbook with the stack above. If you want to you could check out my NixOS config, but I’m using a configuration framework so it’s a bit complicated. https://github.com/n3oney/nixus

      See configs/vic and hosts/vic for macbook-specific configs, everything else in my NixOS config is shared between machines and I opt into it per-machine in configs/<hostname>

      • Also not sure what you mean by your configuration struggles. Never had that happen. Also worth mentioning, my macbook runs Full Disk Encryption which needs my Yubikey to unlock, and I also have impermanence - everything (outside of a few specified directories like ~/Downloads) gets wiped on a reboot, so that my configuration is as reproducible as it can be. I could pretty much reinstall the system and have everything be 100% the same.

  • Thank you everyone for all your suggestions! I’ll quickly try to summarize them for myself. So what you suggest is:

    Operating Systems:

    • NixOs
    • Debian 12
    • ElementaryOS
    • mint
    • PopOs
    • EndevourOS
    • Fedora
    • arch
    • Opensuse
    • Novara

    Tiling Window Manager:

    Recomended to use something based on wayland.

    • hyprland (can be configured from file, good compatibility with nix)
    • sway (proposed with Debian, multiple suggestions, config via file as well, good for custom keybindings, already options for sway in nixos)
    • i3
    • bspwm
    • KDE Plasma
    • dwm / dwl

    Status Bar:

    • swaybar (in case of using sway)
    • waybar (when using wayland)
    • eww
    • ags
    • KDE neon

    Package Managers:

    • flatpack
    • brew (is this already stable enough?)
    • Nix (obvious choice if nix os chosen)
    • snap
    • (pacman if arch)
    • integrated one

    Packages:

    • together with wayland alacritty or kitty
    • foot
    • Yakuake
    • suckless

    At the moment I am trying to avoid anything where RedHat is involved. Not because of the recent controversy, but simply IBM is known to kill their software solutions on a whim. (although i still use ansible), so Fedora is unfortunately out (again, no judging on how great it is). I’ve been quite interested in EndevourOS, so that might be fun to try out. Debian for the desktop probably not right now. I’m running it on servers for stability, but for a desktop environment, i prefer having more recent packages (e.g. neovim). The “sales pitch” for Mint sounded pretty interesting as well. However i’ll give NixOs a try first, simply because it was mentioned very often, same with sway.

    Based on this i’ll try out these combinations first:

    1. NixOs with sway and eww
    2. NixOs with hyprland and waybar
    3. NixOs with dwl and ?

    If this does not satisfy, i’ll look into endevourOS and mint, but that might require some Ansible I assume.

    Thank you very much!

  • I daily drive NixOS on a gaming PC and work laptop, works great for both and haven’t encountered that password issue you mentioned

    ElementaryOS, mint and pop are good starter ones and elementary looks a lot like Mac’s interface

    For desktop environments the ones I know well that have the top bar, GNOME has one by default but don’t think it’s very configurable, Pantheon looks a lot like the Mac UI and I think you can technically edit the html behind it? KDE is definitely the one people use for maximum customisability and you can create a top bar with that pretty easily

    As for capabilities, most distros will do most things, they’re all pretty much the same under the hood and all run the same software depending on package manager

    Package managers generally come with the distro and I think that’s usually the thing that makes people’s minds. I’ve not used brew but most package managers will be something like

    Snap (most distros): “snap install firefox” Apt (Ubuntu based distros): “apt-get install firefox” Pacman (arch based distros): “pacman -S firefox”

    Apologies if I got any details/syntax for any of this wrong am doing this off the top of my head and am rather tired

  • for example user passwords just vanished/changed without any external influence, not allowing access anymore

    Could you elaborate on this? It doesn’t happen for me and thousands of other NixOS users. Did you create some sort of impermanence setup or anything?

      • It might have. I’ve tried nixos on a mini PC meant as a home server, so most configuration is done via SSH and users don’t change (much), I might have accidently activate it while trying nixos out.

        Making users unable to login is a bit of an odd (side?) Effect, but maybe I’m not understanding the purpose of this option correctly. I’ll stay away from it for now :D

        • The NixOS ideal is that every detail of the system is configured through Nix expressions so that the system is completely reproducible. But in practice there are some details you might want to configure directly.

          With users.mutableUsers = false you are in the “ideal” declarative mode where users and groups are supposed to be fully represented in configuration.nix including passwords (or hashed passwords). In this mode the Nix config overrides everything in /etc/passwd. If the Nix config doesn’t specify passwords I think the default is to leave the account without a password, disabling login for that account.

          With users.mutableUsers = true NixOS respects changes to user and group accounts made outside of configuration.nix. Accounts configured through Nix will be added to /etc/password if they aren’t already there. But NixOS won’t remove accounts, and won’t modify or unset passwords. In this mode the default of leaving the password unset makes sense because you’re expected to set a password by running passwd. This is the typical choice because there are security problems with putting passwords in configuration.nix.

          You can set passwords in the Nix config using the password, passwordFile, hashedPassword, or initialPassword options. If mutableUsers is true these options only set the password the first time the user account is created. I checked to see if there are any options that implicitly disable mutable users, but I didn’t find any.

  • a minimal, configurable (file based for git) tiling window manager

    I like i3, it ticks all your boxes. Made my own config in 2020 and it still works. Keep in mind that you have to design your whole desktop enviroment when you go the window manager route. bspwm might be an option as well

    terminal based package management as easy as brew (maybe Nix?)

    Every linux distro has it, I’m an Arch person, many people like Archs package manager pacman, so you could go with EndevourOS or if you’re adventorous with vsnilla Arch.

    as much terminal emulator based as possible (i honestly mostly only need a browser and the terminal, most other apps have a TUI that i can use with the keyboard, see the above requirement)

    Well, what kind of software you’ll run is up to you. Linux has all the TUI stuff. If you haven’t already, check out vim, emacs and nnn. Don’t forget to customize your shell (and choose it first, i would recommend zsh or fish).

    General advice: Look into r/unixporn, most posts there have dotfiles, look for something you like an try it (with a fresh user that you can delete afterwarda maybe?)

  • I’d suggest Linux Mint.

    • Simple UI
    • (Xfce version specifically) is very fast (within reason; it’s still a modern OS)
    • It’s already pretty keyboard-centric and it can be improved further if you like tinkering (my reason for dropping Windows was precisely lack of keyboard-centric controls, so if I stick to Mint, I guess it’s good on that front)
    • Keys can be custom mapped, although I guess most bigger Linux systems allow that either out of the box, or through 3rd party software
    • Unsure what a “dotfile” is, so can’t comment on that
    • And Mint is still slowly adding animations to its functions (to some people’s dismay), and I don’t feel lag when alt-tabbing around, so I guess it is snappy too
  • Don’t have a solution for everything but did want to mention that brew is as viable for Linux as it is for MacOS, except for casks. I tend to use an Ubuntu or Debian base layer and then use brew to pull in all the packages that I know I will always want later and more diverse options than what’s available in the ditto, e.g. ffmpeg, Python.

  • If you want to go really minimal you could use alpine Linux with dwl as a window compositor and st ans your terminal emulator

    I currently run arch with kitty and hyprland but I’m thinking about switching back to Novara and arch in a distrobox or going with bedrock Linux with arch and nobara as a daily driver

  • You may find yourself interested in suckless software, take a look here.

    Its all written and configured with C, so it should be pretty fast. And there’s dwm, their dynamic tiling window manager.

    I guess the distro/package manager would be whatever you want, as suckless software encourages that you build from source and maintain your version of the software.

  • I forgot one essential tool, where I need a recommendation for: spotlight. I use it to switch quickly between applications or to folders. Keyboard shortcut, first letter of the application name and enter… I know there are solutions, but I only heard from Ubuntu, which I don’t want. Anything simple and fast you can recommend?