• 1 Post
  • 76 Comments
Joined 1 year ago
cake
Cake day: June 6th, 2023

help-circle
  • Zip is fine (I prefer 7z), until you want to preserve attributes like ownership and read/write/execute rights.

    Some zip programs support saving unix attributes, other - do not. So when you download a zip file from the internet - it’s always a gamble.
    Tar + gzip/bz2/xz is more Linux-friendly in that regard.

    Also, zip compresses each file separately and then collects all of them in one archive.
    Tar collects all the files first, then you compress the tarball into an archive, which is more efficient and produces smaller size.







  • Ok, because of this post - I decided to bite the bullet and try wayland again. And it was much better experience this time:

    I’ve installed sway “pattern” on OpenSuse-Tumbleweed and:

    • Previous time I had some issues with lightdm not supporting sway, now - it just works.
    • I still use xdotool and i3-msg in my custom scratchpad script and yet everything is working.

    waybar absolutely supports clicking tray icons.

    I confused it with swaybar, that’s installed with sway by default and should be an i3bar-compatible. Waybar doesn’t seem to support i3bar protocol, but anyway, after I configured it - it’s like 95% there from what I want.

    • I had to force xcb platform for appimage of nekoray (qt VPN gui), because it’s complaining about missing wayland-egl plugin. But it’s a small problem with straightforward fix, so not that bad.

  • I could switch tomorrow if I could do my current setup:

    • Tiling Window manager (sway?)
    • simple status bar to output text from a script with clickable applet icons (waybar?)
    • the way to show/hide windows on a button press - I have a script that I use to quickly toggle 3 dropdown terminal windows

    Last time I tried Wayland in December, I had issues with waybar not supporting clicking tray applet icons. Also I’ve ported my dropdown terminals script to support sway - and it worked half the time, like, literally every second key press was ignored.

    On one hand I have X session that currently has no downsides for me, on other - wayland that has no upsides. Tell me, why would I switch?







  • I’m usually bad at chess, please point out if I’m wrong:

    c6 -> Ba4: bishop is safe, pin stands

    queen can’t take because:
    c6 -> Ba4 -> Qxa4: Rook and pawn for a Bishop

    Nc6: Knight is pinned

    Nc6 -> c4 -> a6 -> Ba4 and then push pawns? That’s something I’d have done.

    But realistically, I think pin, potential for blunder and applying pressure could be enough for a brilliant move, depending on rating.





  • janAkali@lemmy.onetoMemes@sopuli.xyzFirefox is King
    link
    fedilink
    English
    arrow-up
    28
    ·
    edit-2
    5 months ago

    I don’t believe it’s only chrome’s problem. I’ve noticed that firefox tends to lock all available memory to himself and whenever I need it, bastard just reallocates it into swap, making whole system laggy and slow.

    So… I’ve got my foxy friend into a Ram jail for being too hungry:
    systemd-run --scope -p MemoryMax=1G --user firefox

    God, I love linux!



  • janAkali@lemmy.onetoLemmy Shitpost@lemmy.worldLet’s try it?
    link
    fedilink
    English
    arrow-up
    30
    ·
    5 months ago

    I thought about this for some time. An anarchy would always collapse into governed state.

    First, imagine the perfect scenario where there no authority and world is just a lot of tiny city-sized communities. It would take just a single bad actor to form a state, start invading neighboring communities and growing in power. In response - other communities would be forced to group into increasingly bigger states to have a chance to oppose influence from bigger/richer states.

    This thought experiment also works if violent takeover is replaced by economic one. Think of cartels and monopolies.