I’m an anarchocommunist, all states are evil.

Your local herpetology guy.

Feel free to AMA about picking a pet/reptiles in general, I have a lot of recommendations for that!

  • 2 Posts
  • 212 Comments
Joined 1 year ago
cake
Cake day: July 6th, 2024

help-circle


  • A lot of people are going to recommend you mint, I honestly think mint is an outdated suggestion for beginners, I think immutability is extremely important for someone who is just starting out, as well as starting on KDE since it’s by far the most developed DE that isn’t gnome and their… design decisions are unfortunate for people coming from windows.

    I don’t think we should be recommending mint to beginners anymore, if mint makes an immutable, up to date KDE distro, that’ll change, but until then, I think bazzite or aurora if you don’t like gaming is objectively a better starting place for beginners.

    The mere fact that bazzite and other immutables generate a new system for you on update and let you switch between and rollback automatically is enough for me to say it’s better, but it also has more up to date software, and tons of guides (fedora is one of the most popular distros, and bazzite is essentially identical except with some QoL upgrades).

    How common is the story of “I was new to linux and completely broke it”? that’s not a good user experience for someone who’s just starting, it’s intimidating, scary, and I just don’t think it’s the best in the modern era. There’s something to be said about learning from these mistakes, but bazzite essentially makes these mistakes impossible.

    Furthermore because of the way bazzite works, package management is completely graphical and requires essentially no intervention on the users part, flathub and immutability pair excellently for this reason.

    Cinnamon (the default mint environment) doesn’t and won’t support HDR, the security/performance improvements from wayland, mixed refresh rate displays, mixed DPI displays, fractional scaling, and many other things for a very very long time if at all. I don’t understand the usecase for cinnamon tbh, xfce is great if you need performance but don’t want to make major sacrifices, lxqt is great if you need A LOT of performance, cinnamon isn’t particularly performant and just a strictly worse version of kde in my eyes from the perspective of a beginner, anyway.

    I have 15 years of linux experience and am willing to infinitely troubleshoot if you add me on matrix.




  • #!/usr/bin/env bash
    
    # get hyprland event socket path
    HIS=$HYPRLAND_INSTANCE_SIGNATURE
    EVENT_SOCK="$XDG_RUNTIME_DIR/hypr/$HIS/.socket2.sock"
    
    # fallback / error check
    if [ -z "$HIS" ] || [ ! -S "$EVENT_SOCK" ]; then
      echo "Error: cannot locate Hyprland event socket at $EVENT_SOCK" >&2
      exit 1
    fi
    
    logfile="${HOME}/hypr_focus.log"
    
    # function to handle a line from the event stream
    handle_event() {
      local line="$1"
      # check for activewindow event
      if [[ $line == activewindow* ]]; then
        # format: activewindow>>CLASS,TITLE
        # strip prefix
        local payload=${line#activewindow>>}
        # split on comma (first comma)
        local cls="${payload%%,*}"
        local title="${payload#*,}"
        local ts
        ts=$(date '+%Y-%m-%d %H:%M:%S')
        echo "$ts$title (class: $cls)" >> "$logfile"
      fi
      # optionally handle activewindowv2 if you want address instead
      # if [[ $line == activewindowv2* ]]; then
      #   ...
      # fi
    }
    
    # listen to the socket
    socat -u "UNIX-CONNECT:$EVENT_SOCK" - | while IFS= read -r line; do
      handle_event "$line"
    done
    
    

    honestly if you’re willing to do some work you can make hyprland do almost anything

    **disclaimer i did not test this much

    edit: forgot about the screenshot part, should be easy to add though, just add screenshotting everytime focus changes with grim or whatever
















  • It does not reduces maintenance.

    It absolutely does, package maintainers just have to maintain ONE package for all distros.

    And it costs hard drive, and with heavy use, probably ram too

    This isn’t performance really, it’s storage, and I don’t think it actually impacts ram.

    Maintenance is only reduced on the surface level. The complexity you don’t see as a problem is the actual maintenance problem. It’s not a problem only if you’re not the one dealing with integration, maintenance or security.

    This is a case you’re going to have to try a lot harder to make, I don’t see what you’re saying at all.